Servlet name
Function
Environment
AccessUserstuf
Primary interface to DB2.
DB2 and Beans
It handles both GET and POST method, and its
action is determined by a parameter called
action.
VBDSearch
Performs search to the Redbooks database.
Domino
The search argument is stored in a parameter
called search.
VBDList10
List 10 latest book of a category. The category
Domino
is indicated by its first argument.
VBDLatest
Provide 10 latest published book from all
Domino
category in the Redbooks database.
VBDOpen
Access the abstract of a redbook and display it
Domino
in HTML.
3.5.2 Maintaining state in HTTP
HTTP is a stateless protocol. To perform transactional activities, some kind of
state must be maintained. There are many ways of maintaining state that has
been developed: Using cookies, URL re writing, hidden form fields in the
HTML form, and so on. The Java servlet API implements access to state via
the HttpSession object.
3.5.2.1 Session Tracking
HttpSession is a technological implementation that is used to manage
sessions on the stateless HTTP protocol. It is part of the Java Servlet API,
and it is accessible in the Java Servlet development kit.
The HttpSession object is the Java programing object that has a
dictionary like interface to store user defined data. Data can be stored in the
HttpSession object with any keyword, and the data is then retrieved with that
keyword.
Each of the session objects has its own ID. HttpSessions objects are related
to the client using its session ID. The session tracker uses the session ID to
find the user's session object. The session object is not sent between the
Web client and the server. Only the ID is passed back and forth between the
Web client and the Web server. This means that the session object is suitable
to store the user's secure data.
Since there are many different ways to represent a session data, the
HttpSession provides a seamless, uniform way to access session data. It
Chapter 3. Building the Web server
81




  

Home

About Services Network Support FAQ Order Contact
 

Linux 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