Servlets and JSP are server side technologies and should be invoked when we receive request from client browser so web container will act as interface between client request and Servlets and jsp in other words Servlets and jsp will reside under web container in order to server client request. hence we required web container in order to invoke Servlets or jsp
Above answer was rated as good by the following members: shilpad, bino75
RE: why we need web container to Deploy the servlet or...
Servlets and JSP are server side technologies and should be invoked when we receive request from client browser so web container will act as interface between client request and Servlets and jsp in other words Servlets and jsp will reside under web container in order to server client request. hence we required web container in order to invoke Servlets or jsp
RE: why we need web container to Deploy the servlet or...
Servlet and JSP are J2EE web components and Servlet is there to handle the request and give response to clients .. web container is the medium for communication between clients and servlet that is recieving it and sending it to servlet and servlet handle the request and send the response to container that's why web container is essential.
RE: why we need web container to Deploy the servlet or jsp ?
All of you are wrong...The main purpose of Servlet Container is to provide the resources needed by the servlet while execution...These resource includes RAM allocated Data Object Pools Network connections and many more...Container is like mother of all J2ee components..It nurtures them as long as they are alive...
RE: why we need web container to Deploy the servlet or jsp ?
Please be carefully while you com to conclusion on other users comment. First try to understand the question here the question is why do we require Web container to deploy servlet or jsp...i think you understood that the question is about purpose of servlet container....However servlet container will pass information to web container and web container will manage the network level services like connection pooling. Regards Ramesh Sukka.
RE: why we need web container to Deploy the servlet or jsp ?
Servlets and JSP are server side technologies and should be invoked when we receive request from client browser so web container will act as interface between client request and Servlets and jsp in other words Servlets and jsp will reside under web container in order to server client request. hence we required web container in order to invoke Servlets or jsp
RE: why we need web container to Deploy the servlet or jsp ?
Compulsorily we need to deploy webresources(Servlet/JSP) in order to execute Servlet/JSP because the web/application server implemented Servlet/JSP APIs. They will not execute in command prompt like standalone applications.
RE: why we need web container to Deploy the servlet or jsp ?
We cannot run the application like simple java programs and it will not execute in command prompt like standalone applications. Compulsorily we need to deploy the webresources like Servlet/JSP in webcontainer container is is heart of the servers .if u send a request to server first container will create a object and assign request .this servlet and JSP were using creation of webapplications this webapplications must deploy the webcontainer.
In order to execute Servlet/JSP because the web/application server implemented Servlet/JSP APIs.
RE: why we need web container to Deploy the servlet or jsp ?
Servlet and JSP both reside in web container. Whenever client send a request thro web server request is passed to container which in turn invokes the required JSP / Servlet page. Beside this web container imposes all security constraints connection pooling etc to the application.