The J2EETM Tutorial
Home
TOC
PREV TOC NEXT Search
Feedback

Java Servlet Technology

by Stephanie Bodoff

As soon as the web began to be used for delivering services, service providers recognized the need to serve dynamic content. Applets, one of the earliest attempts towards this goal, focused on using the client platform to deliver customized user experiences. At the same time, developers also investigated using the server platform for this purpose. Initially, CGI scripts were the main technology used to generate dynamic content. Though widely used, CGI scripting technology has a number of shortcomings including platform-dependence and lack of scalability. To address these limitations, Java Servlet technology was created as a portable way to provide dynamic, user-oriented content.

What is a Servlet?
The Example Servlets
Troubleshooting
Servlet Life Cycle
Monitoring Servlet Life Cycle Events
Handling Errors
Sharing Information
Scope Objects
Controlling Concurrent Access to Shared Resources
Initializing a Servlet
Writing Service Methods
Getting Information From Requests
Constructing Responses
Filtering Requests and Responses
Defining the Filter Class
Specifying Filter Mappings
Invoking Other Web Resources
Including the Content of Another Resource in the Response
Transferring a Control to Another Web Component
Accessing the Web Context
Maintaining Client State
Accessing a Session
Associating Attributes with a Session
Session Management
Session Tracking
Finalizing a Servlet
Tracking Service Requests
Providing a Clean Shutdown
Creating Polite Long-Running Methods
Home
TOC
PREV TOC NEXT Search
Feedback