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

Peter Rossbach, Hendrik Schreiber

  • 出版商: Pearson Education
  • 出版日期: 2000-03-23
  • 定價: USD $46.99
  • 售價: $299
  • 語言: 英文
  • 頁數: 448
  • 裝訂: Paperback
  • ISBN: 0201674912
  • ISBN-13: 9780201674910

立即出貨

買這商品的人也買了...

商品描述


Description

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.
Preface.
The Software for the Book.
Notation in UML.
Questions and Suggestions.
Our Thanks.

I. BASIS.

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

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

3. Servlets.
Introduction.
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.
Security.
Web Applications.

II. WEBAPP FRAMEWORK.


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.
Basics.
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.
Metaservice.
Server Construction Made Easy.

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

8. Servlet Method Invocation.
Architecture.
Life Cycle.
Bound Objects.
Implementation.
Displaybean.
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.

III. APPLICATIONS.


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.
Bibliography.
Index. 0201674912T04062001


Back to Top