O'Reilly logo

Java™ Network Programming and Distributed Computing by Michael Reilly, David Reilly

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

10.3. Using Servlets

Servlets rely on classes defined in the javax.servlet and javax.servlet.http packages. These packages are a standard extension to the Java API, and ship with the Java Servlet Development Kit (JSDK) as well as many servlet-compatible Web servers.

The starting point for a servlet is the servlet interface. This interface provides the basic structure methods for servlets, such as the initializing, service, and destruction methods. It also provides structure methods for accessing the servlet's context and configuration, as shown later in this chapter. By default, servlets that implement this interface use a shared threading model that drastically improves the performance of servlets to handle large numbers of requests. An alternative ...

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