Servlets.com

Home

What's New?

com.oreilly.servlet

Servlet Polls

Mailing Lists

List Archives

Servlet Engines

Servlet ISPs

Servlet Tools

Documentation

Online Articles

The Soapbox

"Java Servlet
Programming,
Second Edition"

"Java Enterprise
Best Practices"

Speaking & Slides

About Jason

XQuery Affiliate

Advertising Info

The Book
Chapter 7 Examples from Java Servlet Programming, 2nd Ed

  • 7-1: Session tracking using hidden form fields
  • 7-4: Session tracking a hit count
  • 7-6: Toying with the timeout
  • 7-8: Snooping session information

Examples from other chapters:

Example 7.1: Session tracking using hidden form fields
This servlet demonstrates session tracking using hidden form fields by displaying the shopping cart for a bookworm. Note that, if you try this servlet, the buttons at the bottom of the page it generates don't take you anywhere real.

Example 7.4: Session tracking a hit count
This servlet uses session tracking to count the number of times a client has accessed it. The servlet also displays all the bindings for the current session, just because it can.

Example 7.6: Toying with the timeout
This servlet demonstrates how to programmatically alter the current timeout. On first execution, the current timeout displays the application-wide setting. On second execution, the current timeout displays two hours—because that’s the timeout set during the first execution.

Example 7.8: Snooping session information
This servlet snoops information about the current session.

 


Home   com.oreilly.servlet   Polls   Lists   Archives
Engines   ISPs   Tools   Docs   Articles   Soapbox   Book

Copyright © 1999-2005 Jason Hunter
Privacy Policy

webmaster@servlets.com
Last updated: March 1, 2009