| Share this post! | Vote this! |
|
When a request comes in something has to to instantiate the servlet or at least make a new thread to handle the request. Something has to call the servlets doPost() or doGet()
method and they have crucial arguments - the HTTP request and HTTP
response objects, so something has to handle the life, death and
resources of the servlet and that something is the Web Container.
What is a Container
Tomcat is an example of a container, when a web server gets a request for a servlet , the web server hands the request to the Container in which the servlet is deployed. It's the Container that gives the servlet the HTTP request and response and it's the Container that calls the servlet's methods (doPost() and getGet()). more...
What is a Container
Tomcat is an example of a container, when a web server gets a request for a servlet , the web server hands the request to the Container in which the servlet is deployed. It's the Container that gives the servlet the HTTP request and response and it's the Container that calls the servlet's methods (doPost() and getGet()). more...




0 comments:
Post a Comment