You are here:   HomeJava Servlet
by Dinesh Thakur Category: introduction to Servlet

Of these, HTTP servlets have some additional objects that provide session-tracking capabilities, the servlet writer can use the HttpSession interface to maintain the state of a client between client requests upto some time period. The capability of maintaining cookies is also provided by the HTTP servlets, The servlet writer uses the Cookie class to save small bits of information within the client machine, which can be retrieved at request processing time, Program illustrates the use of the HttpServlets.



 
by Dinesh Thakur Category: introduction to Servlet

• Once web server is started one daemon process will be started to listen to clients continuously and to trap and take the client generated Http request.

• The process that runs continuously is called as daemon process.

 
by Dinesh Thakur Category: introduction to Servlet

When four requests are given to a Servlet program.

a) The Servlet container creates one object of that Servlet class.

b) Servlet container starts 4 threads on that object representing 4 requests on per request basis.



 
by Dinesh Thakur Category: introduction to Servlet

JSP is a tag-based language, i.e., code is written within specified tags. It is developed by Sun Microsystems. Unlike servlet program, we can write HTML tags within the JSP program, making it easier to build.



 
by Dinesh Thakur Category: introduction to Servlet

• Listens to client request continuously (HTTP Request).

• Traps and takes client generated HTTP Request.

• Passes the HTTP request to an appropriate web resource program of web application (deployed web application).

 
by Dinesh Thakur Category: introduction to Servlet

Servlets are platform independent and can work with almost all the web servers. They can be executed on any web server that supports the servlet API. Some of the web servers having built-in support for Java servlets are Tomcat server (Apache), Java web server (Sun Microsystems), Enterprise server (Netscape), Zeus web server (Zeus Technology), Tengah application server (Weblogic) and Sun web server (Sun Microsystems).



 
by Dinesh Thakur Category: introduction to Servlet

Important terms used in web application are discussed here.

 
by Dinesh Thakur Category: introduction to Servlet

HTTP headers are the request to a server for information and the resulting response. When you input an address into your browser, it sends a request to the server hosting the domain and the server responds. You can see the request and response using the basic HTTP Header Viewer. The HTTP Header Viewer can be used to view the Headers or Headers and Content of any valid http:/ / url. When the HEAD is selected, the request is for the server to only send header information. AGET selection requests both headers and file content just like a browser request. Information in response headers may include:



 
by Dinesh Thakur Category: introduction to Servlet

The ServletRequest is a predefined interface present in javax.serviet package. The object of ServletRequest interface deals with the client request and fetches it to the servlet program. This object is created by the servlet container and is used as the argument of service method (life cycle method).



 
by Dinesh Thakur Category: introduction to Servlet

* Every software and non-software objects life cycle (considering all the operations that are taken place from object birth to object death)

 

Page 3 of 24

What's New and Popular





Search Content







Advance Courses



Basic Courses



Advertise with Us