Web Server Web Container
A web server is used to handle HTTP requests and deliver static content. A web container is used to execute and manage web components like servlets and JSP.
It mainly serves static files such as HTML, CSS, images, and JavaScript. It processes dynamic content generated by servlets and JSP.
It does not manage the servlet life cycle. It manages the servlet life cycle including init(), service(), and destroy().
It provides basic request handling and response delivery. It provides additional services like security, session management, and threading.
Examples include Apache HTTP Server and Nginx. Examples include Apache Tomcat, Jetty, and GlassFish.
Previous Post Next Post