After developing Servlet Application we need to deploy and run our application at theWeb-Server. When a Web-server starts it internally starts a web-container which is also termed as servlet container. 

What is a web-container ?
A web-container is nothing but a simple java program which is used to delegate the incoming request from the browser to the respective Servlet Object running inside a web-container. 

Originally a request from the client machine(web browser) comes to the web-server which is capable of handling static pages request and for generating dynamic page a Servlet Object is responsible which runs inside a web-container , so after receiving the request by the web-server it forwards to the web-container and then from a web-container to the respective Servlet Object for dynamic page generation and finally to the clients machine as a display to the web browser. 


                              ( Diagram showing how request follows from client to web-container)

What is the use of web container?
It is used to delegate the incoming request to the servlet object running inside the web-container to process the request and generate the dynamic content.

What are the limitations with the Web-Server?
Web-server is only capable of forwarding the static page only in response to the client machine. For processing the the request and generating the dynamic page we need to have a web-container inside a web-server.

How the Servlet instance created and what happened at the container start up. To know about the thing happens at the container start-up click here..!!


Related Posts:

  • Cookies in Session handling Cookies is the concept of storing the client's information in the client machine itself but in the form of a file called as Cookies. So it contains all the information sent by the Web server with the response header. previ… Read More
  • include() in servlet include() is a method defined in the RequestDispatcher interface with ServletRequest and ServletResponse as a parameter. It is same as forward with slight difference of storing the content of both source and target resourc… Read More
  • Handling Session in Servlet Handling session defines how session should be managed internally. Session is meant for keeping track of user's information which is required further for the next proceeding requests. Scope of a session is alive from its cr… Read More
  • Hidden Form field in Session handling One of the major disadvantage with the URL Rewriting is that passing session data with the URL makes visible to every one who are requesting for the resource. To over come this problem the concept of hidden form field is i… Read More
  • URL Re-writing in Session Handling URL Re-writing is a technique by which session data can be handled within the server side only.Client is not responsible for keeping any information regarding session. In this process at every request the required session da… Read More

0 comments:

Post a Comment

Ads 468x60px

.

Ads

.

Featured Posts

Popular Posts

Like Us On FaceBook

Total Pageviews

201976

Online Members

Live Traffic