The Servlet Cookie API

12 years ago

To send cookies to the client, a servlet should create one or more cookies with designated names and values with…

ServletContext Interface

12 years ago

An object of ServletContext is created by the web container at time of deploying the project. This object can be…

ServletConfig Interface

12 years ago

ServletConfig is implemented by the servlet container to initialize a single servlet using init(). That is, you can pass initialization…

Send Redirect in Servlet

12 years ago

The sendRedirect() method of HttpServletResponse interface can be used to redirect response to another resource, it may be servlet, jsp…

HttpSession interface

12 years ago

The HttpSession object represents a user session. A user session contains information about the user across multiple HTTP requests.When a…

RequestDispatcher Interface

12 years ago

In this tutorial you will learn how to use forward() method of RequestDispatcher in Servlet forward() method of RequestDispatcher forwards…

HttpResponse Servlet

12 years ago

The HttpServlet class request processing methods take two parameters. javax.servlet.http.HttpRequest javax.servlet.http.HttpResponse The HttpServletResponse object generates a response to return to…

HttpRequest

12 years ago

The HttpServlet class request processing methods take two parameters. javax.servlet.http.HttpRequest javax.servlet.http.HttpResponse For instance, here is the signature of the HttpServlet.doGet()…

Class HttpServlet

12 years ago

The HttpServlet class extends the GenericServlet class and implements Serializable interface. It provides http specific methods such as doGet, doPost,…

Difference between GenericServlet and HttpServlet

12 years ago

GenericServlet class implements Servlet, ServletConfig and Serializable interfaces. It provides the implementaion of all the methods of these interfaces except…