The javax.servlet API

The javax.servlet API covers most of the basic features that any servlet needs. It is protocol-independent, allowing for future expansion into new protocols, such as WAP. The HTTP-specific servlet features are provided by a separate javax.servlet.http package.

Most of the commonly used items in this API are defined as interfaces and not as concrete classes. Each servlet engine has the flexibility to implement these interfaces as it sees fit.

Interfaces

RequestDispatcher

The RequestDispatcher interface is the entryway for calling another servlet, JSP, or other Web resource, either by inclusion or by forwarding. When you include or forward to another resource, you must get the RequestDispatcher for that object (a service provided ...

Get Special Edition Using Java™ 2 Enterprise Edition 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.