I was readign as below
Web server contains only web or servlet container. It can be used for servlet, jsp, struts, jsf etc. It can't be used for EJB.
Example of Web Servers are: Apache Tomcat and Resin.
Application server contains Web and EJB containers. It can be used for servlet, jsp, struts, jsf, ejb etc.
Example of Application Servers are:
JBoss Open-source server from JBoss community.
Glassfish provided by Sun Microsystem. Now acquired by Oracle.
Weblogic provided by Oracle. It more secured.
Websphere provided by IBM.
My question is if we use Application server itself that supports EJBs and Servlets etc right. Then what is the need of web server when application server is bundled to do everything.
Any links resources ideas highly appreciated. Thanks in advance