Web server only supports Web application like Servlets, JSP, HTML and Application Server support Enterprise Edition like Servlets , JSP , HTML, EJB (Enterprise Java Bean) , JMS (Java Message Service) and the Application Server is Superior (Web Server + EJB + JMS).
A Web server handles the HTTP convention. At the point when the Web server gets a HTTP request, it reacts with a HTTP reaction, for example, sending back a HTML page. To prepare a solicitation, a Web server may react with a static HTML page or picture, send a redirect, or delegate the dynamic reaction era to some other program, for example, JSPs (JavaServer Pages), servlets, server-side JavaScripts.
An application server opens business logic to browser applications through various protocols, potentially including HTTP. While a Web server chiefly manages sending HTML for expose in a Web program, an application server gives access to business logic to utilize by browser application programs.
javax.servlet.* package contains a number of classes and interfaces that define the agreement between the servlet class and the run-time environment provided an instance of the servlet class by a conforming servlet container.
javax.servlet.http.* package contains a number of classes and interfaces that define the agreement between the servlet class under HTTP protocol and the run-time environment provided an instance of the servlet class by conforming servlet container.
Click Here To Know more about Java Packages