← Blog

Servlet Class Notes - WEB III

February 10, 2015

A Servlet is an interface defined in the javax.servlet package, used to extend a server’s functionality. A servlet container is the environment that hosts servlets inside a web server, responsible for generating dynamic Java pages for the user. Each servlet is a Java class with specific lifecycle elements, and the container’s main job is to route requests to the right servlet, where the JVM processes them.

Some servers that support servlets:

A few more open-source Java web servers

While a web container is essentially an environment that manages servlets, a server application is a server that bundles a web container, an EJB container, JDBC, and more, forming a full Java EE (Enterprise Edition) environment.

studiesjava