Java Reference
In-Depth Information
Figure 9-21.
9.
Switch to the Source view.
The following if tag should have been inserted:
<c: if test='${pageContext.request.method=="POST"}'></c:if>
Notice that the EL condition checks the value of the request object's method variable. This variable contains the
request type (e.g., POST or GET) that invoked the JSP.
Time to test.
10.
Change the body of the if tag as follows so that the text “Got to post” is displayed:
<c: if test='${pageContext.request.method=="POST"}'>
Got to post
</c:if>
 
Search WWH ::




Custom Search