O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Servlet Environment

We now turn our attention to servlets. Servlets are Java classes that can be loaded dynamically and run by a Java-enabled Web server. The Web server provides support for servlets with extensions called containers (also known as servlet engines).

Web clients (Web browsers) interact with the servlet using the HTTP request/response protocol that has been described earlier.

Servlet Containers

The servlet container provides the following services and functionality:

  • The network services over which the requests and responses are sent.

  • Registers the servlet against one or more URLs.

  • Manages the servlet lifecycle.

  • Decodes MIME-based requests.

  • Constructs MIME-based responses.

  • Supports the HTTP protocol (it can also support other protocols). ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required