Java Servlet Programing Laungage

Java Servlet Projects

Servlet Project 3

adplus-dvertising
Java Servlet :State Management using Servlets
Previous Home Next

Http the protocol is used for communication and is a stateless protocol ,it means that it cannot  persist the information. It always treats each request as a new request.that is for each request a new Http connection is made.

The disadvantage of stateless protocol is that server fails to recognize that a series of requests coming from a user are logically related and represents a single operation from user point of view.

Problem of State management deals with the maintainance of state between multiple request of a client.Over the time following four methods are divided for maintaining state:

  1. Cookies
  2. Hidden from fields
  3. URL rewriting
  4. HttpSession objects.
Previous Home Next