Home TOC |
![]() ![]() ![]() |
Java
Servlet Technology
As soon as the Web began to be used for delivering services, service providers recognized the need for dynamic content. Applets, one of the earliest attempts towards this goal, focused on using the client platform to deliver dynamic 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.
In This Chapter
- What is a Servlet?
- The Example Servlets
- Troubleshooting
- Servlet Life Cycle
- Handling Servlet Life Cycle Events
- Handling Errors
- Sharing Information
- Using Scope Objects
- Controlling Concurrent Access to Shared Resources
- Accessing Databases
- Initializing a Servlet
- Writing Service Methods
- Getting Information From Requests
- Constructing Responses
- Filtering Requests and Responses
- Programming Filters
- Programming Customized Requests and Responses
- Specifying Filter Mappings
- Invoking Other Web Resources
- Including Other Resources in the Response
- Transferring 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
- Notifying Methods to Shut Down
- Creating Polite Long-Running Methods
Home TOC |
![]() ![]() ![]() |