About the Book

Inside Servlets: Server-Side Programming for the Java Platform
Published by Addison-Wesley

Java servlet technology, an integral part of the Java 2 Enterprise Edition (J2EE) platform, Inc., has become the de facto standard for creating dynamic, data-driven Web applications. By conforming to the Java Servlet API, developers can guarantee that their server-side programs will run on any J2EE-compliant platform.

Written for the thousands of Web programmers, designers, and consultants who want to expand their repertoire of development tools or enhance their servlet programming skills, Inside Servlets provides exactly the information needed. It offers important background information on Web technologies, an inside look at Java servlet technology, a hands-on servlet tutorial, and a guide to advanced servlet programming for creating sophisticated, high-performance Web sites.

This Second Edition has been thoroughly updated to incorporate versions 2.2 and 2.3 of the Java Servlet Specification. In addition, the book has been expanded to provide in-depth coverage of such vital topics as security, JavaServer Pages, packaging and deployment, advanced database access techniques, and servlet troubleshooting.

You will find an introduction to Web technologies that explains such fundamentals as firewalls, proxy servers, sockets, HTTP, and MIME types. A servlet tutorial offers information on basic servlet structure, demonstrates how to write and run your first servlet, and previews the Servlet API. The book then moves on to advanced servlet concepts and techniques. Lastly, a complete reference to the Servlet API is provided.

Specific topics featured include:

* Writing thread-safe servlets
* Servlet debugging
* HTTP redirects
* Cookies and session management
* Server-side includes
* Request forwarding
* Servlet chaining
* Database access with JDBC
* Security and encryption
* JavaServer Pages (including custom tag libraries)
* Packaging and deployment
* Servlet troubleshooting
* Separating content from presentation using a servlet-based template framework
* Servlet filtering and application lifecycle events (introduced in Servlet API 2.3)

In addition, Inside Servlets contains an entire section devoted to real-world examples of servlets in action, with detailed explanations and complete source code. The CD-ROM accompanying this book contains the source code and compiled class files for all sample code; JRun 3.0 from Allaire; SevletExec 3.0 from New Atlanta Communications; Apache Tomcat 3.1 and 3.2; MySQL database and JDBC driver; JBuilder 4 from Borland; and many other valuable servlet development tools.