Java Reference
In-Depth Information
You should now move this JSP to the < SERVER_ROOT >/djs/ directory and open your browser to
the following URL:
http:// localhost /djs/UseSession.jsp
You should see a page similar to Figure 15.2.
F IGURE 15.2
Output from UseSession.jsp .
Now go ahead and click your reload button a few times. The count should increment with
every reload.
N OTE
You should also note that the session object has session scope; therefore it will not
hold the objects added to it after its expiration.
15
 
Search WWH ::




Custom Search