Enterprise Java Servlets (Paperback)
暫譯: 企業 Java Servlet
Jeff M. Genender
- 出版商: Addison Wesley
- 出版日期: 2001-09-04
- 定價: $1,400
- 售價: 5.0 折 $700
- 語言: 英文
- 頁數: 464
- 裝訂: Paperback
- ISBN: 020170921X
- ISBN-13: 9780201709216
-
相關分類:
Java 程式語言、Java 相關技術
立即出貨(限量) (庫存=4)
買這商品的人也買了...
-
$99Oracle Web Applications: PL/SQL Developer's Introduction (Paperback)
-
$490JavaServer Pages (Paperback)
-
$725Java Server and Servlets: Building Portable Web Applications (Paperback)
-
$1,860$1,767 -
$399Building Java Enterprise Systems with J2EE (Paperback)
-
$1,900$1,805 -
$399Developing Java Servlets: Web application with servlets ad JSP, 2/e (Paperback)
-
$1,248C++ in Action: Industrial-strength Programming Techniques (Paperback)
-
$675HAVi Example By Example: Java Programming for Home Entertainment Devices (Paperback)
-
$1,460$1,387 -
$2,250$2,138 -
$1,710$1,625 -
$399Applied .NET: Developing People-Oriented Software Using C#
-
$875XML.NET Developer's Guide
-
$399Effective Visual Studio .Net
-
$399.NET Enterprise Development in VB.NET: From Design to Deployment (Paperback)
-
$680$537 -
$1,320Enterprise JavaBeans Component Architecture: Designing and Coding Enterprise App
-
$299Java 2 Micro Edition (Paperback)
-
$2,050$1,948 -
$1,460$1,387 -
$399.NET Programming: A Practical Guide Using C# (Paperback)
-
$1,900$1,805 -
$299Enterprise JavaBeans, 4/e (Paperback)
-
$550$468
商品描述
Learn to design and build a base enterprise servlet. Create an architecture that makes your enterprise applications run faster and more reliably.
Java™ servlets are rapidly replacing CGI as the tool of choice for creating interactive applications for the enterprise market. Using the Java programming language's servlet technology speeds up the application development process, freeing developers from the need to make platform-specific modifications. Servlet technology is reliable, employs reusable components, and ensures high performance in the demanding enterprise and e-commerce markets.
Enterprise Java™ Servlets anticipates common issues and provides new development methods, extensive sample code, and case studies. The book is based on a battle-tested base servlet architecture that the author and his team created while repairing a workflow application for clients. Jeff noticed that many corporations and development shops ran into the same problems and pitfalls time and time again. This book chronicles Jeff's experiences creating a servlet-based architecture, which helps avoid issues that are continually encountered and provides for rapid application development in the enterprise. The type of architecture presented here eliminates the need to code servlets from scratch and automatically provides each servlet with access to all the new features and solutions added to the base servlet. This type of single-servlet approach results in a single, consistent application that is easy to migrate to production and extend to new applications.
You'll find expert coverage of various topics, including:
- HTML development in servlets
- How templates assist in content management
- Pool objects that streamline the use of objects and database connections in a Web environment
- Integrating LDAP into a Java servlet application
- Dynamic image generation and pluggable security models for servlets
- Multiple applications running on a single server and the effect on session, component, and application variables
Geared to developers who have a working knowledge of servlet development, this book provides the base servlet architecture--complete with extensive code samples and numerous case studies--that you can build on when writing enterprise applications. Using base servlet architecture removes the drudgery of developing servlets, so you can concentrate on business needs.
The accompanying CD-ROM includes code examples, as well as Windows and UNIX versions of JRun, ServletExec, and Apache Tomcat Servlet Container.
Table of Contents
Foreword.
Preface.
1. Introduction to Enterprise Servlets.
Registering Servlets with the Servlet Container.
What You Need.
The Base Enterprise Servlet.
Base Enterprise Servlet Basics.
Implementation of a Base Servlet.
The HttpMethod Class.
The ConfFile Class.
The MethodList Class.
Sample Application.
Summary.
Chapter 2. AppContext: Managing Applications.
The AppContext Object.
Restructuring the BaseEnterpriseServlet.
The Two Application Example.
Forcing Uniqueness Across Applications—AppManager.
Summary.
Chapter 3. Forms, State and Session Management.
Packaging the Query with GET and POST.
HTTP Forms and Enterprise Servlets.
Form and HTML Development in the Enterprise.
Maintaining State with Sessions in the Enterprise.
The Enterprise Session.
Session and Form Example with Multiple Applications.
Summary.
Chapter 4. HTML with Templates.
Developing a Template Engine.
Templates with Enterprise Servlets.
Nesting Templates.
Making It Scream—Caching Templates.
Integrating the Template Objects and Cache into Enterprise Servlets.
into Enterprise Servlets.
Using the Template Cache in Enterprise Servlets.
Summary.
Chapter 5. Logging and Error Handling.
The Components of a Standardized Log File.
The EnterpriseLog Object.
A Logging Example.
Error Handling.
Logger Application with Error-Handling.
Summary.
Chapter 6. Security.
Web Authentication.
Customizing Web Authentication.
Example Using Pluggable Security Components.
Form-Based Authentication.
Summary.
Chapter 7. Pools.
Using Pools in Web Development.
Using the Pool Object.
Using the Pool: An Example.
The Pool Anomaly.
Using the PoolList and PoolObjectManager: An Example.
Summary.
Chapter 8. Database Connectivity.
JDBC Statement and ResultSet Objects.
The PreparedStatement and CallableStatement Objects.
Transactions.
Closing the Connection.
Managing the Connection in a Server Environment.
Understanding Connection Management.
Building Connection Management.
The SQLCursor Object.
The DBConnection Object.
Using the Connection Management Objects.
Database Pooling with the Connection.
Management Objects.
Making the DBConnectionPool Object Easier to Create.
The DBPoolParser Object.
Using the DBPoolParser in Enterprise Servlets.
Summary.
Chapter 9. LDAP Connectivity.
How LDAP Works.
Advantages and Disadvantages of LDAP.
LDAP with Java: The JNDI.
Searching LDAP for Values.
Sorting Results.
Adding and Removing an Entry.
Modifying Attributes Within an Entry.
Closing the LDAPContext Object.
LDAP Considerations in a Server Application.
Building the LDAP Connection Management Objects.
The LDAPConnection Object.
Using the LDAP Connection Management Objects.
The LDAPConnectionPool Object.
Putting the Connection Management Objects to Use.
Summary.
Chapter 10. Dynamic Graphics.
Handling Image Types.
Dynamic Images.
Memory Management.
Pooling Memory Buffers.
Random Pie Chart Example.
Summary.
Chapter 11. Using JSP with Enterprise Servlets.
JSPs with Servlets.
Releasing BaseEnterpriseServlet's Grip on AppContext.
Tapping into the Enterprise Servlet.
A Quick Look at the Java Tag Library.
Bridging the JSP to the Enterprise Servlet.
Using the ESBridge Tag Library.
Accessing the EnterpriseSession Object.
Handling Errors.
Summary.
Chapter 12. Taking Enterprise Servlets Further.
Enhancements for the Reader.
The Template Engine.
The Database and LDAP Pools.
Administrative Tool.
Pager or Email Monitor.
Anything You Want.
Bibliography.
Index.
商品描述(中文翻譯)
學習設計和建立基礎企業伺服器。創建一個架構,使您的企業應用程式運行得更快且更可靠。
Java™ 伺服器快速取代 CGI,成為創建企業市場互動應用程式的首選工具。使用 Java 程式語言的伺服器技術加快了應用程式開發過程,讓開發人員不必進行平台特定的修改。伺服器技術可靠,採用可重用的元件,並確保在要求高的企業和電子商務市場中具有高效能。
《企業 Java™ 伺服器》預見了常見問題,並提供新的開發方法、廣泛的範例程式碼和案例研究。本書基於作者及其團隊在修復客戶工作流程應用程式時創建的經過實戰考驗的基礎伺服器架構。Jeff 注意到許多公司和開發商一次又一次地遇到相同的問題和陷阱。本書記錄了 Jeff 創建基於伺服器的架構的經驗,幫助避免不斷遇到的問題,並提供快速的企業應用程式開發。這裡所呈現的架構類型消除了從頭編寫伺服器的需要,並自動為每個伺服器提供訪問所有新增功能和解決方案的能力。這種單一伺服器的方法產生了一個單一且一致的應用程式,易於遷移到生產環境並擴展到新應用程式。
您將找到各種主題的專家覆蓋,包括:
- 在伺服器中進行 HTML 開發
- 模板如何協助內容管理
- 簡化在 Web 環境中使用物件和資料庫連接的物件池
- 將 LDAP 整合到 Java 伺服器應用程式中
- 動態圖像生成和可插拔的伺服器安全模型
- 在單一伺服器上運行多個應用程式及其對會話、元件和應用程式變數的影響
本書針對對伺服器開發有基本了解的開發人員,提供基礎伺服器架構——配有廣泛的程式碼範例和眾多案例研究——您可以在撰寫企業應用程式時加以擴展。使用基礎伺服器架構消除了開發伺服器的繁瑣,讓您可以專注於業務需求。
隨書附贈的 CD-ROM 包含程式碼範例,以及 Windows 和 UNIX 版本的 JRun、ServletExec 和 Apache Tomcat 伺服器容器。
目錄
前言。
序言。
1. 企業伺服器介紹。
開發伺服器和伺服器容器。
設置和運行伺服器。
在伺服器容器中註冊伺服器。
您需要的東西。
基礎企業伺服器。
單一伺服器方法。
基礎企業伺服器基礎知識。
基礎伺服器的實現。
Class.forName() 方法。
HttpMethod 類。
ConfFile 類。
MethodList 類。
範例應用程式。
總結。
第 2 章。AppContext:管理應用程式。
ConfigFile 再探。
AppContext 物件。
重構 BaseEnterpriseServlet。
兩個應用程式範例。
強制應用程式之間的唯一性——AppManager。
總結。
第 3 章。表單、狀態和會話管理。
HTTP 表單:回顧。
標籤。
使用 GET 和 POST 封裝查詢。
HTTP 表單和企業伺服器。
企業中的表單和 HTML 開發。
在企業中使用會話維護狀態。
標準伺服器架構和會話。
企業會話。
多個應用程式的會話和表單範例。
總結。
第 4 章。使用模板的 HTML。
使用模板。
JSP 作為模板引擎。
開發模板引擎。
HTML 模板。
與企業伺服器的模板。
嵌套模板。
讓它快速——緩存模板。
構建模板緩存。
將模板物件和緩存整合到企業伺服器中。
在企業伺服器中使用模板緩存。
總結。
第 5 章。日誌和錯誤處理。
在伺服器引擎中進行日誌記錄。
伺服器引擎日誌檔案的異常。
標準化日誌檔案的組件。
EnterpriseLog 物件。
在企業伺服器中進行日誌記錄。
日誌範例。
錯誤處理。
DefaultErrorHandler 物件。
具有錯誤處理的日誌應用程式。
總結。
第 6 章。安全性。
安全性類型。
Web 認證。
底層實作。
自定義 Web 認證。
使用可插拔安全元件的範例。
基於表單的認證。
將基於表單的認證整合到企業伺服器中。
總結。
第 7 章。池。
什麼是池?
在 Web 開發中使用池。
基礎池物件。
使用池物件。
使用池:範例。
池異常。
PoolList 和 PoolObjectManager。
使用 PoolList 和 PoolObjectManager:範例。
總結。
第 8 章。資料庫連接。
JDBC:快速回顧。
加載驅動程式並連接到資料庫。
JDBC 語句和 ResultSet 物件。
PreparedStatement 和 CallableStatement 物件。
事務。
關閉連接。
在伺服器環境中管理連接。
理解連接管理。
構建連接管理。
JDBCManager 物件。
SQLCursor 物件。
DBConnection 物件。
使用連接管理物件。
資料庫池與連接管理物件。
使用 DBConnectionPool 物件。
使 DBConnectionPool 物件更易於創建。
NameValuePair 物件。
DBPoolParser 物件。
在企業伺服器中使用 DBPoolParser。
總結。
第 9 章。LDAP 連接。
LDAP 的小歷史。
LDAP 的工作原理。
區別名稱。
LDAP 的優缺點。
Java 中的 LDAP:JNDI。
連接到 LDAP。
在 LDAP 中查找值。
排序結果。
添加和刪除條目。
修改條目中的屬性。
關閉 LDAPContext 物件。
伺服器應用程式中的 LDAP 考量。
構建 LDAP 連接管理物件。
LDAPManager 物件。
LDAPConnection 物件。
使用 LDAP 連接管理物件。
LDAPConnectionPool 物件。
將連接管理物件投入使用。
總結。
第 10 章。動態圖形。
瀏覽器如何請求圖像。
處理圖像類型。
動態圖像。
記憶體管理。
創建物件是您最大的敵人。
池化記憶體緩衝區。
隨機圓餅圖範例。
總結。
第 11 章。將 JSP 與企業伺服器結合使用。
有偏好嗎?
JSP 與伺服器。
JSP 和企業伺服器。
釋放 BaseEnterpriseServlet 對 AppContext 的控制。
接入企業伺服器。
快速瀏覽 Java 標籤庫。
將 JSP 與企業伺服器橋接。
使用 ESBridge 標籤庫。
訪問 EnterpriseSession 物件。
使用 標籤。
處理錯誤。
總結。
第 12 章。進一步發展企業伺服器。
在多應用程式環境中啟動 Web 伺服器。
為讀者增強功能。
模板引擎。
資料庫和 LDAP 池。
管理工具。
分頁或電子郵件監控。
任何您想要的東西。
參考書目。
索引。