Organization

Java Servlet Programming, 2nd Edition > Preface > Organization

 
< BACKCONTINUE >

This book consists of 20 chapters and 6 appendixes, as follows:

Chapter 1

Explains the role and advantage of Java servlets in web application development. The second edition has been updated with additional server information.

Chapter 2

Provides a quick introduction to HTTP and the things an HTTP servlet can do. Demonstrates basic web page generation and introduces the notion of pluggable web applications. The second edition covers web applications and their XML-based deployment descriptors.

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. The second edition includes new rules for context reloading and registering servlets, a new section on server-side caching, and a new sidebar on super.init(config).

Chapter 4

Introduces the most common methods a servlet uses to receive information about the client, the server, the client's request, and itself. Also demonstrates a reusable class to handle file uploads. The second edition discusses setting information in the deployment descriptor, getting a servlet's name, accessing temporary directories, handling context init parameters, determining the Servlet API version, assigning servlet mappings, and accessing abstract resources. It also demonstrates an improved, more flexible file upload component.

Chapter 5

Describes how a servlet can generate HTML, return errors and other status codes, buffer responses, redirect requests, write data to the server log, and send custom HTTP header information. The second edition contains new coverage of response buffering, a truly useful redirection example, and new sections on configuring error pages and error handling.

Section 6.1

Looks at some of the interesting things a servlet can return: WAP/WML content for wireless devices, dynamically generated images, compressed content, and multipart responses. The second edition adds the WAP/WML coverage, welcome file lists, a discussion of PNG, an improved server-side image cache, and more details on generating compressed content.

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. The second edition includes the rules for web application sessions, material on new session method names, a discussion of how to manage timeouts, and applet-based session tracking.

Chapter 8

Explains the security issues involved with distributed computing. Demonstrates how to make use of standard servlet hooks for user account management and how to build a more powerful system using custom authentication and authorization. Also explains a servlet's role in secure SSL communication. Has been updated in its entirety in this second edition.

Chapter 9

Shows how servlets can be used for high-performance web-database connectivity. Includes a tutorial on JDBC. The second edition contains a demonstration of configuring connections with a properties file, a new guestbook example, and a new section on JDBC 2.0.

Chapter 10

Describes how servlets can be leveraged by an applet that needs to communicate with the server. Updated for this second edition.

Chapter 11

Discusses why servlets need to communicate with one another and how they can collaborate by sharing information or making calls on one another. Has been updated in its entirety in this second edition.

Chapter 12

Discusses advanced servlet features needed for enterprise sites: distribution of load and J2EE component integration. New in the second edition.

Chapter 13

Shows how a servlet can read and generate multilingual content. The second edition explains how to use javac to manage encodings and how to use new API methods to manage locales.

Chapter 14

Demonstrates the Tea framework, an elegant yet powerful templating engine. New in the second edition.

Chapter 15

Discusses the WebMacro framework, similar to Tea but with several different design decisions. New in the second edition.

Chapter 16

Gives short coverage on ECS, an object-oriented approach to page creation. New in the second edition.

Chapter 17

Provides an overview of XMLC, a page creation approach with an XML bent. New in the second edition.

Chapter 18

Explains JSP, the Sun standard technology in which web pages are autocompiled into servlets. New in the second edition.

Chapter 19

Presents a junk drawer full of useful servlet examples and tips that don't really belong anywhere else. The second edition includes a localized parameter parser, a new email class, an updated regular expression section, a new third-party tool section, and additional performance tips.

Chapter 20

Illustrates the upcoming changes in the 2.3 version of the Servlets API, which is expected to be released in mid-2001. New in the second edition.

Appendix A

Contains a full description of the classes, methods, and variables in the javax.servlet package. The second edition has been updated for Servlet API 2.2.

Appendix B

Contains a full description of the classes, methods, and variables in the javax.servlet.http package. The second edition has been updated for Servlet API 2.2.

Appendix C

Presents an annotated reference for the web.xml deployment descriptor's Document Type Definition. New in the second edition.

Appendix D

Lists the status codes specified by HTTP, along with the mnemonic constants used by servlets.

Appendix E

Lists the character entities defined in HTML, along with their equivalent Unicode escape values.

Appendix F

Lists the suggested charsets servlets may use to generate content in several different languages.

Please feel free to read the chapters of this book in whatever order you like. Reading straight through from front to back ensures that you won't encounter any surprises, as efforts have been made to avoid forward references. If you want to skip around, however, you can do so easily enough, especially after Chapter 5 the rest of the chapters all tend to stand alone. One last suggestion: read Section 19.7 of Chapter 19 if at any time you find a piece of code that doesn't work as expected.


Last updated on 3/20/2003
Java Servlet Programming, 2nd Edition, © 2001 O'Reilly

< BACKCONTINUE >

2001, O'Reilly & Associates, Inc.



Java servlet programming
Java Servlet Programming (Java Series)
ISBN: 0596000405
EAN: 2147483647
Year: 2000
Pages: 223

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net