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 相關技術
  • 立即出貨(限量)

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

商品描述


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

商品描述(中文翻譯)

描述

使用Java、物件技術、模式和UML來建立功能完整的基於網頁的伺服器應用程式!本書是一本從頭到尾介紹使用新的JSP 1.1和Servlet API 2.2進行伺服器和Servlet程式設計的指南。它涵蓋了將Java基礎的Web伺服器客製化為特定應用需求的方法。書中還介紹了功能強大的開源Jo! Web伺服器套件,該套件提供了前所未有的靈活性和客製化支援。隨著JSP 1.1和Java Servlet API 2.2的出現,可攜式網頁應用程式開發已經成熟,這本新書從頭到尾介紹了使用Sun最新工具進行Java伺服器和Servlet開發的方法。從伺服器和Servlet程式設計的基礎知識開始,包括Java sockets和threads;接著,深入了解簡單Web伺服器的開發,理解服務/處理器架構和HTTP協議的內部運作。深入探索最新的Servlet API,了解其所有介面和類別;然後逐步開發完整的基於網頁的應用程式伺服器框架,包括伺服器API、應用程式層和動態HTML生成。本書詳細介紹了作者們的開源WebApp Framework和Jo! Web伺服器,包括配置和日誌記錄;可重複使用的套件為快速伺服器開發奠定基礎;實現Servlet引擎等等。

Peter Rossbach自1997年起擔任Factum的高級專案經理,該公司是AMG的子公司。他的職責包括開發IntraNEWS,這是一個基於Java的企業對企業內容管理系統,目前已經有超過300個安裝,包括德國最佳西方酒店。

Hendrik Schreiber於1997年開始在Factum工作,目前是一位開源開發者,他的項目包括Jo!,這是第一個支援Servlet API 2.1的Web伺服器。

目錄

關於作者頁面。
前言。
本書的軟體。
UML中的符號。
問題和建議。
致謝。
第一部分:基礎。
1. 基礎知識。
HTML。
HTTP。
通用網關介面。
Java。
2. HTTP伺服器。
極簡實現。
同時處理請求。
更多安全性。
狀態碼。
標頭資料。
3. Servlets。
介紹。
Servlet引擎。
"Hello World"。
Servlet的生命週期。
執行環境。
Servlet異常。
執行緒安全性。
HTTP特定的Servlet。
使用RequestDispatcher轉發。
在羅馬時,寫羅馬字。
真實生活中的Servlet。
安全性。
Web應用程式。
第二部分:WebApp Framework。
4. 配置管理。
易於存取。
不限制特定記憶體位置或儲存媒體。
階層式資料結構。
Configfilereader檔案格式。
靈活的檔案格式。
使用預設值。
配置物件。
5. 協議服務。
基礎知識。
是否記錄日誌?
協議服務的配置。
使用格式進行協議。
6. 伺服器工具包。