Book description
Servlets are an exciting and important technology that ties Java to the Web, allowing programmers to write Java programs that create dynamic web content.Java Servlet Programming covers everything Java developers need to know to write effective servlets. It explains the servlet lifecycle, showing how to use servlets to maintain state information effortlessly. It also describes how to serve dynamic web content, including both HTML pages and multimedia data, and explores more advanced topics like integrated session tracking, efficient database connectivity using JDBC, applet-servlet communicaton, interservlet communication, and internationalization. Readers can use the book's numerous real-world examples as the basis for their own servlets.The second edition has been completely updated to cover the new features of Version 2.2 of the Java Servlet API. It introduces chapters on servlet security and advanced communication, and also introduces several popular tools for easier integration of servlet technology with dynamic web pages. These tools include JavaServer Pages (JSP), Tea, XMLC, and the Element Construction Set.In addition to complete coverage of 2.2 specification, Java Servlet programming, 2nd Edition, also contains coverage of the new 2.3 final draft specification.
Publisher resources
Table of contents
- Java Servlet Programming, 2nd Edition
- A Note Regarding Supplemental Files
- Preface
- 1. Introduction
- 2. HTTP Servlet Basics
- 3. The Servlet Lifecycle
-
4. Retrieving Information
- The Servlet
- The Server
-
The Client
- Getting Information About the Client Machine
- Restricting Access
- Getting Information About the User
- A Personalized Welcome
- The Request
- Request Parameters
- Generating a License Key
- Path Information
- Getting MIME types
- Serving Files
- Reading from an Abstract Resource
- Serving Resources
- Serving Resources for Download
- Determining What Was Requested
- How It Was Requested
- Request Headers
- Wading the Input Stream
- Extra Attributes
- 5. Sending HTML Information
- 6. Sending Multimedia Content
-
7. Session Tracking
- User Authentication
- Hidden Form Fields
- URL Rewriting
- Persistent Cookies
-
The Session Tracking API
- Session-Tracking Basics
- A Hit Count Using Session Tracking
- The Session Lifecycle
- Setting the Session Timeout
- Lifecycle Methods
- Manually Invalidating a Stale Session
- How Sessions Really Work
- Applet-Based Session Tracking
- Noncookie Fallbacks
- SessionSnoop
- Session Binding Events
- Shopping Using Session Tracking
- 8. Security
- 9. Database Connectivity
- 10. Applet-Servlet Communication
- 11. Servlet Collaboration
- 12. Enterprise Servletsand J2EE
- 13. Internationalization
- 14. The Tea Framework
- 15. WebMacro
- 16. Element Construction Set
- 17. XMLC
- 18. JavaServer Pages
- 19. Odds and Ends
- 20. Whatâs New in the Servlet 2.3 API
- A. Servlet API Quick Reference
- B. HTTP Servlet API Quick Reference
-
C. Deployment Descriptor DTD Reference
- <auth-constraint>
- <auth-method>
- <context-param>
- <description>
- <display-name>
- <distributable>
- <ejb-link>
- <ejb-ref>
- <ejb-ref-name>
- <ejb-ref-type>
- <env-entry>
- <env-entry-name>
- <env-entry-type>
- <env-entry-value>
- <error-code>
- <error-page>
- <exception-type>
- <extension>
- <form-error-page>
- <form-login-config>
- <form-login-page>
- <home>
- <http-method>
- <icon>
- <init-param>
- <jsp-file>
- <large-icon>
- <load-on-startup>
- <location>
- <login-config>
- <mime-mapping>
- <mime-type>
- <param-name>
- <param-value>
- <realm-name>
- <remote>
- <res-auth>
- <res-ref-name>
- <res-type>
- <resource-ref >
- <role-link>
- <role-name>
- <security-constraint>
- <security-role>
- <security-role-ref >
- <servlet>
- <servlet-class>
- <servlet-mapping>
- <servlet-name>
- <session-config>
- <session-timeout>
- <small-icon>
- <taglib>
- <taglib-location>
- <taglib-uri>
- <transport-guarantee>
- <url-pattern>
- <user-data-constraint>
- <web-app>
- <web-resource-collection>
- <web-resource-name>
- <welcome-file>
- <welcome-file-list>
- D. HTTP Status Codes
- E. Character Entities
- F. Charsets
- Index
- About the Authors
- Colophon
- Copyright
Product information
- Title: Java Servlet Programming, 2nd Edition
- Author(s):
- Release date: April 2001
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596000400
You might also like
book
Java Servlet Programming
A few years ago, the hype surrounding applets put Java on the map as a programming …
book
Java Servlet & JSP Cookbook
With literally hundreds of examples and thousands of lines of code, the Java Servlet and JSP …
book
Java for the Web with Servlets, JSP, and EJB: A Developer’s Guide to J2EE Solutions
Java for Web with Servlets, JSP and EJB is the one book you need to master …
book
J2EE Design Patterns
Architects of buildings and architects of software have more in common than most people think. Both …