HttpServlet class

HttpServlet is an abstract class present in javax.servlet.http package. This class is a subclass of GenericServlet class and used widely to create a servlet. Although HttpServlet extends GenericServlet, still there are much differences between them. Differences...

GenericServlet Class

Java provides an alternative way to create a servlet in the form of GenericServlet. It is an abstract class present in javax.servlet package that implements Servlet, ServletConfig and Serializable interface. So, now our servlet program needs to extend GenericServlet....

Servlet Hidden Form Field

Hidden form field is an invisible field that saves the information regarding the state in client browser. As this information is invisible so client can’t see it but it is visible to servlet. These fields are added to HTML form and when client submit form then these...

Servlet URL Rewriting

This is another approach to maintain the session of a user. In this mechanism, when a client make a request then some extra information is appended in the URL of that request. This extra information uniquely identifies a user and it may be a path info, parameter...

Servlet Cookie

Cookie is a class that is used for session management. It contains a small amount of information which persists between the server and client.  This information includes name, value and other attributes. Servlet send this information to web browser and browser saved...

Servlet Session Management

What is session? A session is a link between a client and the server. This link represents some identity that makes client unique so that it is known by the server whenever a request is made. Need to maintain this session? Whenever a client made a request, the server...

Servlet Filter

A filter is an object that is used to obstruct the request and response from server. It has a capability to change the response through Servlet or JSP page. Thus by using filter we can create reusable components. Filter performs various filtering tasks such as...

Pin It on Pinterest