March 2008
Intermediate to advanced
911 pages
20h 31m
English
The first time you request the Hello.jsp, the JSP does the conditional test, discovers there’s no value for userName, and forwards to the HandleIt.jsp. Assuming the user types a name into the name input field, the second request won’t do the forward, since the userName request parameter has a non-null value.
First request for Hello.jsp

Second request for Hello.jsp


| How come the “Welcome to our page!” text didn’t print out the first time? |