Java Server and Servlets: Building Portable Web Applications (Paperback)
暫譯: Java 伺服器與 Servlet:構建可攜式網頁應用程式 (平裝本)

Peter Rossbach, Hendrik Schreiber

  • 出版商: Addison Wesley
  • 出版日期: 2000-03-23
  • 定價: $1,450
  • 售價: 5.0$725
  • 語言: 英文
  • 頁數: 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!
- 從頭到尾的伺服器和 Servlet 程式設計指南,涵蓋新的 JSP 1.1 和 Servlet API 2.2。
- 根據特定應用需求自訂基於 Java 的網頁伺服器。
- 涵蓋強大的開源 Jo! 網頁伺服器套件,提供前所未有的靈活性和自訂支援。

隨著 JSP 1.1 和 Java Servlet API 2.2 的推出,可攜式網頁應用程式開發已經成熟——這本新書涵蓋了 Java 伺服器和 Servlet 的開發,使用 Sun 的最新工具,從頭到尾。首先介紹伺服器和 Servlet 程式設計的基本概念,包括 Java 套接字和執行緒;接著,回顧簡單網頁伺服器的開發,了解服務/處理器架構和 HTTP 協議的內部運作。深入探索最新的 Servlet API,理解其所有介面和類別;然後逐步開發完整的基於網頁的應用伺服器框架,包括伺服器 API、應用層和動態 HTML 生成。本書深入介紹作者的開源 WebApp 框架和 Jo! 網頁伺服器,包括配置和日誌記錄;可重用的套件為快速伺服器開發奠定基礎;Servlet 引擎的實作;以及更多內容。

Peter Rossbach 自 1997 年以來擔任 Factum(AMG 的子公司)的高級專案經理。他的職責包括開發 IntraNEWS,一個基於 Java 的商業對商業內容管理系統,目前已有超過 300 個安裝,包括 Best Western Hotels Deutschland。

Hendrik Schreiber 自 1997 年起在 Factum 工作,目前是一名開源開發者,其專案包括 Jo!,這是第一個支援 Servlet API 2.1 的網頁伺服器。

目錄

- 關於作者
- 前言
- 本書所需軟體
- UML 符號
- 問題與建議
- 感謝詞

I. 基礎
1. 基本概念
- 超文本標記語言
- 超文本傳輸協議
- 通用網關介面
- Java

2. HTTP 伺服器
- 簡約實作
- 同時處理請求
- 增加一些安全性
- 狀態碼
- 標頭資料

3. Servlets
- 介紹
- Servlet 引擎
- “Hello World”
- Servlets 的生命週期
- 執行環境
- Servlet 異常
- 執行緒安全
- HTTP 特定 Servlets
- 使用 RequestDispatcher 進行轉發
- 在羅馬時寫作如羅馬人
- 實際的 Servlets
- 安全性
- 網頁應用程式

II. WEBAPP 框架
4. 配置管理
- 易於訪問
- 不限制特定記憶體位置或儲存媒介
- 階層資料結構
- Configfilereader 檔案格式
- 靈活的檔案格式
- 使用預設值
- 配置物件

5. 協議服務
- 基本概念
- 記錄或不記錄?
- 協議服務的配置
- 使用格式進行記錄

6. 伺服器工具包
- 基本介面
- UDP 和 TCP 服務
- 服務與處理器之間的互動
- 處理器回收
- 回音服務
- 元服務
- 簡化伺服器建構

7. 開發 Jo! Servlet 引擎
- 基本設計
- 設計改進
- 服務
- 主機
- Servlet 上下文對等
- Servlet 模型
- 處理器
- Jofactory
- Jo! 的成就

8. Servlet 方法調用
- 架構
- 生命週期
- 綁定物件
- 實作
- Displaybean
- SMI 的進一步應用
- SMI 總結

9. 在關聯式資料庫中的 Java 物件
- 關聯式資料庫的基本概念
- 用於持久性的表格
- Java 物件的定義
- 持久性框架的架構
- 簡單範例
- 持久物件網絡
- 應用持久性

10. 使用 Servlets 生成動態 HTML 頁面
- 在伺服器上生成 HTML 頁面
- JavaServer Pages

III. 應用程式
11. StoreBrowser
- 控制流程
- 類別設計
- 對話和佈局
- SMI—定義和配置

12. OnlineShop
- 控制流程
- 類別設計
- 對話和佈局
- SMI—定義和配置

13. Chat
- 控制流程
- 類別設計
- 對話和佈局
- SMI—定義和配置

14. 最後的評論

附錄 A: ConfigFileReader 檔案格式
附錄 B: 配置持久性框架的選項
附錄 C: 部署描述符的 DTD
附錄 D: 圖表
附錄 E: 表格
附錄 F: 清單
參考文獻
索引