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 ...
Get Java™ Network Programming and Distributed Computing now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.