| Hi Anas, As per my understanding it goes like this: Web Server : It accepts HTTP request from client(usually a web browser) and forwards it to web container. Gets the response from Web Container and forwards it back to client. Web Container: It accepts request to from server and as per the request type call the service method(doGet, doPost etc) on the respective resource(servlet/JSP) based on uri and sends back the response to web server. It is also responsible for: Communication support(socket creation), Servlet life cycle management (Init(), Service() and Destroy()), Multithreading support, Declarative security(thru deployment descriptor) and JSP support . |
is the web container part of web server ? |
I know about Apache Tomcat. Earlier 'Apache' used to come as a separate web server. |
is servlet web container or web component ? |
| None. Servlet is niether. It is just a Java class capable of processing http based request/response. Thanks, -Pravin --- On Fri, 6/2/09, Anas <anas.ahme...@gmail.com> wrote: |
|
| Nachiket, Both are different. Web Container is nothing but an implementation of servlet/jsp technology. And a web server is the one which actually deals directly with client for HTTP request/response. Pravin --- On Sun, 8/2/09, Nachiket Patel <patel.na...@gmail.com> wrote: |
Hi Nachiket,No web container is the very generic term. any system that contains all components(style sheets, media, scripts, classes, etc) related with any web application is called as web container. it can be a single software like apache tomcat or it can be group of various component. Like for example when we use PHP as a server side language and apache HTTP server as web container, than your web container contains PHP compiler.
--
Regards,
Nachiket Patel