Thursday, March 13, 2008

The difference between a web container and a web server

web container is also called as the application server. as you know tomcat is a popular web container.is there a difference between a web server and a web container?
actually yes.
a web server usually serves html pages and images.they are static things unless they contain java script in them.
but when using jsp's and servlets we must use an application server to support them.because it is a software that supports multiple operations in a dynamic environment.
when we request something through our browser(eg:button click) it comes to the web server abd the server redirect that request to the container.
the container manages the whole other things.such as threading,security,communication and life cycle management and so on.
when the request is completed the container forwards the generated response to the web server.then the server displays through the browser.we will learn more in the Servlet life cycle.

No comments: