Monthly Archive: December 2013

ServletContext Interface

An object of ServletContext is created by the web container at time of deploying the project. This object can be used to get configuration information from web.xml file. There is only one ServletContext object per …

ServletConfig Interface

ServletConfig is implemented by the servlet container to initialize a single servlet using init(). That is, you can pass initialization parameters to the servlet using the web.xml deployment descriptor. For understanding, this is similar to …

Send Redirect in Servlet

The sendRedirect() method of HttpServletResponse interface can be used to redirect response to another resource, it may be servlet, jsp or html file.It accepts relative as well as absolute URL. It works at client side …

HttpSession interface

The HttpSession object represents a user session. A user session contains information about the user across multiple HTTP requests.When a user enters your site for the first time, the user is given a unique ID …

RequestDispatcher Interface

In this tutorial you will learn how to use forward() method of RequestDispatcher in Servlet forward() method of RequestDispatcher forwards the request made by the client by the the resource (any of them servlet , …

HttpResponse Servlet

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 the requesting client. Its methods allow you to set the response header and the response …

HttpRequest

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() method: protected void doGet( HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } The purpose …