Java Server and Servlets: Building Portable Web Applications (Paperback)

Peter Rossbach, Hendrik Schreiber

  • 出版商: Addison Wesley
  • 出版日期: 2000-03-23
  • 定價: $1,450
  • 售價: 1.4$199
  • 語言: 英文
  • 頁數: 448
  • 裝訂: Paperback
  • ISBN: 0201674912
  • ISBN-13: 9780201674910
  • 相關分類: Java 程式語言Java 相關技術
  • 立即出貨(限量)





Build full-featured web-based server applications using Java, object technology, patterns, and UML!

  • A start-to-finish guide to server and servlet programming with the new JSP 1.1 and Servlet API 2.2.
  • Customizing a Java-based Web server to specific application requirements.
  • Covers the powerful open source Jo! Web server package, which offers unprecedented flexibility and customization support.
With JSP 1.1 and the Java Servlet API 2.2, portable web application development has come of age -- and this new book covers the Java server and servlet development with Sun's latest tools, from start to finish. Begin with the basics of server and servlet programming, including Java sockets and threads; next, review the development of a simple web server, understanding the service/handler architecture and the inner workings of the HTTP protocol. Explore the latest Servlet API in depth, understanding all of its interfaces and classes; then walk through the development of a complete web-based application server framework, including the server API, application layer, and dynamic HTML generation. The book offers in-depth coverage of the authors' open source WebApp Framework and Jo! Web server, including configuration and logging; reusable packages that lay the groundwork for rapid server development; implementation of a servlet engine; and much more.

Peter Rossbach has worked since 1997 as Senior Project Manager for Factum, a subsidiary of AMG. His responsibilities include developing IntraNEWS, a Java-based business-to-business content management system that now has over 300 installations, including Best Western Hotels Deutschland.

Hendrik Schreiber began working for Factum in 1997, and is currently an open source developer whose projects include Jo!, the first web server to support the Servlet API 2.1.

Back to Top

Table Of Contents

About the Authors Page.
The Software for the Book.
Notation in UML.
Questions and Suggestions.
Our Thanks.


1. Fundamentals.
Hypertext Markup Language.
Hypertext Transfer Protocol.
Common Gateway Interface.

2. HTTP Server.
The Minimalist Implementation.
Serving Requests Simultaneously.
A Bit More Security, Please.
Status Codes.
Header Data.

3. Servlets.
Servlet Engines.
“Hello World.”
Life Cycle of Servlets.
Run-Time Environment.
Servlet Exceptions.
Thread Security.
HTTP-Specific Servlets.
Diverting Using RequestDispatcher.
When in Rome, Write Like the Romans.
Real-Life Servlets.
Web Applications.


4. Configuration Management.
Easy Accessibility.
No Restriction to Particular Memory Locations or Storage Media.
Hierarchical Data Structures.
Configfilereader File Format.
Flexible File Format.
Use of Defaults.
Configuration Object.

5. Protocol Service.
To Log or Not to Log?
Configuration of Protocol Service.
Protocolling with Format.

6. Server Toolkit.
Basic Interfaces.
UDP and TCP Services.
Interaction Between Service and Handler.
Handler Recycling.
Echo Service.
Server Construction Made Easy.

7. Developing Jo! The Servlet Engine.
Basic Design.
Design Improvement.
Servlet Context Peer.
Servlet Model.
What Jo! Achieves.

8. Servlet Method Invocation.
Life Cycle.
Bound Objects.
SMI Carried Further.
SMI Summarized.

9. Java Objects in a Relational Database.
The Basics of Relational Databases.
Tables for Persistence.
Definition of the Java Objects.
Architecture of the Persistence Framework.
A Simple Example.
Persistent Object Networks.
Applying Persistence.

10 Generating Dynamic HTML Pages with Servlets.
Generating HTML Pages on the Server.
JavaServer Pages.


11. StoreBrowser.
Control Flow.
Class Design.
Dialogue and Layout.
SMI—Definition and Configuration.

12. OnlineShop.
Control Flow.
Class Design.
Dialogue and Layout.
SMI — Definition and Configuration.

13. Chat.
Control Flow.
Class Design.
Dialogue and Layout.
SMI — Definition and Configuration.

14. Final Comments.
Appendix A: ConfigFileReader File Format.
Appendix B: Options for Configuring the Persistence Framework.
Appendix C: Deployment Descriptor's DTD.
Appendix D: Figures.
Appendix E: Tables.
Appendix F: Listings.
Index. 0201674912T04062001

Back to Top