by Dinesh Thakur

In this example we will explain the get status method() this method is referred  to HttpServletResponse interface. The status we set will be diaplayed.

 
by Dinesh Thakur

This example will explain that the HttpServletResponse setDateHeader() method is used to set date with header name.in the example we use util package that will allow us to access the mandatory library for date initializing on the web browser as output.

 
by Dinesh Thakur

Header Request is a request information that the user make request to the server. This will display the header information like local host name, request path, query generation. Here we made a program that will demonstrate the header information with as output on the web browser. Some packages like enumeration also declared for coding.



 
by Dinesh Thakur

HttpSession object allocates memory on the server and remembers client data across the multiple requests in the form of session attribute values. HttpSession object is one per browser window (client) so each HttpSession object can be used to remember client data during a session.



 
by Dinesh Thakur

• The limitation with third technique is, if cookies are restricted from coming to browser then third technique fails to perform session tracking because it uses in memory cookie to send session id to browser from web application along with response and to bring session id to web application from browser window along with request.



 
by Dinesh Thakur

Cookies are the small textual information which allocate the memory at client side by remembering client data across the multiple requests during a session. The web resource programs of web application create cookies at server side but these cookies come to client side along with the response and allocate memory at client side. Cookies of client side go back to their web application along with the request given by clients (browser windows to web resource programs).



 
by Dinesh Thakur

The form page prepared using .html file is called source form page (fixed content).The form page that comes as response generated by servlet or JSP program is called dynamic form page (dynamic content). Instead of asking all the details of end user in a single form page, it is recommended to ask those details in multiple form pages.



 
by Dinesh Thakur

An invisible text box of the form page is called a hidden box. When a form page is submitted, the hidden box value goes to web resource program along with the request parameter value.

 
by Dinesh Thakur

We will discuss why HTTP is designed as a stateless protocol and what will happen if it comes as stateful protocol. If HTTP is stateful protocol, multiple requests given by client to web application by a single connection will be used between browser window and web server across the multiple requests. This makes clients engage connection with web server for long time even though most of its connections are idle.