Session Tracking

Session Tracking  HTIP is a stateless protocol, which means that each request is independent of the -previous one, However, in some applications, it is necessary to save state information so that information can be collected from several.interactions between a browser...

Using Cookies

Using Cookies  Now, let’s develop a servlet that illustrates how to use cookies. The servlet is invoked when a form on a Web page is submitted. The example contains three files, as summarized hei e: File AddCookie.htm AddCookieScrvlet.java GetCookiesServlet.java...

Handling HTTP POST Requests

Handling HTTP POST Requests This section develops a servlet that handles an HTIP POST request. The scrvlet is invoked when a form on a Web page is submitted. The example contains two files: ColorPost.htm defines a Web page and ColorPos Servlet java defines a...

Handling HTTP Requests and .Responses

Handling ‘HTTP Requests and .Responses The Hup servtet class provides specialized methods that handle the various types of  requests. 1\ servlet developer typically overrides one of these methods. These methods arc doDeka( ) duct( ). do Options( ), do Post(),...

The Http Session BindingEvent Class

The Http Session BindingEvent Class The Http Session Binding Event class extends Event. It is generated when a listener is bound to or unbound from a value in an Secessionist object. · Http Session Event has the following constructor: Http Session Binding Event (Http...

That HttpServlet Class

 That HttpServlet Class The Http Servlet class extends Generic it is commonly used when lopil  servlets that receive and process HTTP’ flush The methods of the  cLass are summarized here  Method void doDe!ete(HttpServletRcquest req,  HttpServletResponse...