Review: Session Tracking
Although it usually uses cookies behind the 
scenes, the session tracking API is higher 
level and easier to use than the cookie API
Session information lives on server
Cookie or extra URL info associates it with a user
Obtaining session
request.getSession(true)
Associating values with keys
session.setAttribute
Finding values associated with keys
session.getAttribute
Always check if this value is null before trying to use it
103
Servlets
www.corewebprogramming.com
Preview: The Need for JSP
With servlets, it is easy to
Read form data
Read HTTP request headers
Set HTTP status codes and response headers
Use cookies and session tracking
Share data among servlets
Remember data between requests
Get fun, high paying jobs
But, it sure is a pain to
Use those println statements to generate HTML
Maintain that HTML
104
Servlets
www.corewebprogramming.com
52




  

Home

About Services Network Support FAQ Order Contact
 

Servlet Web Hosting

Our partners:Jsp Web Hosting Unlimited Web Hosting Cheapest Web Hosting  Java Web Hosting Web Templates Best Web Templates PHP Mysql Web Hosting Interland Web Hosting Cheap Web Hosting PHP Web Hosting Tomcat Web Hosting Quality Web Hosting Best Web Hosting  Mac Web Hosting 

Lunarwebhost.net  Business web hosting division of Vision Web Hosting Inc. All rights reserved