Organization
This book consists of 13 chapters and 5 appendices, as follows:
- Chapter 1
Explains the role and advantage of Java servlets in web application development.
- Chapter 2
Provides a quick introduction to the things an HTTP servlet can do: page generation, server-side includes, servlet chaining, and JavaServer Pages.
- Chapter 3
Explains the details of how and when a servlet is loaded, how and when it is executed, how threads are managed, and how to handle the synchronization issues in a multithreaded system. Persistent state capabilities are also covered.
- Chapter 4
Introduces the most common methods a servlet uses to receive information—about the client, the server, the client’s request, and itself.
- Chapter 5
Describes how a servlet can generate HTML, return errors and other status codes, redirect requests, write data to the server log, and send custom HTTP header information.
- Chapter 6
Looks at some of the interesting things a servlet can return: dynamically generated images, compressed content, and multipart responses.
- Chapter 7
Shows how to build a sense of state on top of the stateless HTTP protocol. The first half of the chapter demonstrates the traditional session-tracking techniques used by CGI developers; the second half shows how to use the built-in support for session tracking in the Servlet API.
- Chapter 8
Explains the security issues involved with distributed computing and demonstrates how to maintain security with servlets.
- Chapter 9
Shows how servlets can be used ...