Core Servlets and JavaServer Pages, Vol. 1: Core Technologies, 2/e

Marty Hall

  • 出版商: Prentice Hall
  • 出版日期: 2003-08-26
  • 定價: $2,580
  • 售價: 6.0$1,548
  • 語言: 英文
  • 頁數: 726
  • 裝訂: Paperback
  • ISBN: 0130092290
  • ISBN-13: 9780130092298
  • 相關分類: Java 相關技術
  • 立即出貨(限量) (庫存=7)

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

商品描述

Summary

The J2EE(TM) Platform has become the technology of choice for developing professional e-commerce applications, interactive Web sites, and Web-enabled applications and services. Servlet and JSP(TM) technology is the foundation of this platform: it provides the link between Web clients and server-side applications. In this 2nd edition of the worldwide bestseller, the authors show you how to apply the latest servlet and JSP capabilities. Unlike other books that treat servlet or JSP technology in isolation, Core Servlets and JavaServer Pages provides a unified treatment, showing you when servlet technology is best, when the JSP approach is preferred, and when (and how) servlets and JSP should work together.

Part I provides exhaustive coverage of the servlet 2.4 specification. It starts with server configuration, basic syntax, the servlet life cycle, and use of form data. It moves on to applying HTTP 1.1, cookies, and session tracking. Advanced topics include compressing Web content, incrementally updating results, dynamically generating images, and creating shopping carts.

Part II gives an in-depth guide to JSP 2.0. It covers both the "classic" JSP scripting elements and the new JSP 2.0 expression language. It shows how to control the content type, designate error pages, include files, and integrate JavaBeans components. Advanced topics include sharing beans, generating Excel spreadsheets, and dealing with concurrency.

Part III covers two key supporting technologies: HTML forms and database access with JDBC(TM). It explains every standard HTML input element and shows how to use appropriate JDBC drivers, perform database queries, process results, and perform updates. Advanced topics include parameterized queries, stored procedures, and transaction control.

Design strategies include ways to integrate servlet and JSP technology, best practices for invoking Java code from JSP pages, plans for dealing with missing and malformed data, and application of the MVC architecture.

Handy guides walk you through use of three popular servlet and JSP engines (Apache Tomcat, Macromedia JRun, and Caucho Resin) and some of the most widely used database systems (MySQL, Oracle9i, Microsoft Access).

Volume 2 of this book covers advanced topics: filters, custom tag libraries, database connection pooling, Web application security, the JSP Standard Tag Library (JSTL), Apache Struts, JavaServer Faces (JSF), JAXB, and more.

  • The same clear step-by-step explanations that made the first edition so popular
  • Completely updated for the latest standards: servlets 2.4 and JSP 2.0
  • Hundreds of completely portable, fully documented,industrial-strength examples

Detailed treatment of Apache Tomcat, Macromedia JRun, and Caucho Resin Online access to all source code, available free for unrestricted use at the author's www.coreservlets.com web site.

Table of Contents

I. Servlet Technology

 1. An Overview of Servlet and JSP Technology.
 2. Server Setup and Configuration.
 3. Servlet Basics.
 4. Handling the Client Request: Form Data.
 5. Handling the Client Request: HTTP Request Headers.
 6. Generating the Server Response: HTTP Status Codes.
 7. Generating the Server Response: HTTP Response Headers.
 8. Handling Cookies.
 9. Session Tracking.

II. JSP Technology.

10. Overview of JSP Technology.
11. Invoking Java Technology Code with JSP Scripting Elements.
12. Controlling the Structure of Generated Servlets: The JSP Page Directive.
13. Including Files and Applets in JSP Pages.
14. Using JavaBeans Components in JSP Documents.
15. Integrating Servlets and JSP: the Model View Controller (MVC) Architecture.
16. Simplifying Access to Java Code: The JSP 2.0 Expression Language.

III. Supporting Technology.

17. Accessing Databases with JDBC.
18. Configuring Microsoft Access, MySql, and Oracle9i.
19. Creating and Processing HTML Forms.
Appendix. Server Organization and Structure.
Index.

商品描述(中文翻譯)

摘要

J2EE平台已成為開發專業電子商務應用程式、互動網站和網絡應用程式與服務的首選技術。Servlet和JSP技術是該平台的基礎,它提供了Web客戶端和服務器端應用程式之間的連接。在這本全球暢銷書的第二版中,作者們向您展示如何應用最新的Servlet和JSP功能。與其他僅將Servlet或JSP技術單獨處理的書籍不同,Core Servlets and JavaServer Pages提供了統一的處理方式,向您展示何時最適合使用Servlet技術,何時應該選擇JSP方法,以及何時(以及如何)應該將Servlet和JSP結合使用。

第一部分詳細介紹了Servlet 2.4規範。它從服務器配置、基本語法、Servlet生命週期和使用表單數據開始。然後介紹了應用HTTP 1.1、Cookie和會話跟踪。高級主題包括壓縮Web內容、增量更新結果、動態生成圖像和創建購物車。

第二部分深入介紹了JSP 2.0。它涵蓋了“經典”JSP腳本元素和新的JSP 2.0表達式語言。它展示了如何控制內容類型、指定錯誤頁面、包含文件和集成JavaBeans組件。高級主題包括共享Beans、生成Excel電子表格和處理並發。

第三部分涵蓋了兩個關鍵的支持技術:HTML表單和使用JDBC進行數據庫訪問。它解釋了每個標準HTML輸入元素,並展示了如何使用適當的JDBC驅動程序,執行數據庫查詢,處理結果並進行更新。高級主題包括參數化查詢、存儲過程和事務控制。

設計策略包括將Servlet和JSP技術整合的方法,從JSP頁面調用Java代碼的最佳實踐,處理缺失和格式錯誤數據的計劃,以及應用MVC架構。

方便的指南引導您使用三個流行的Servlet和JSP引擎(Apache Tomcat、Macromedia JRun和Caucho Resin)以及一些最廣泛使用的數據庫系統(MySQL、Oracle9i、Microsoft Access)。

本書的第二卷涵蓋了高級主題:過濾器、自定義標籤庫、數據庫連接池、Web應用程式安全性、JSP標準標籤庫(JSTL)、Apache Struts、JavaServer Faces(JSF)、JAXB等。

- 第一版廣受歡迎的清晰逐步解釋
- 完全更新至最新標準:Servlets 2.4和JSP 2.0
- 數百個完全可移植、完全文檔化、工業強度的示例

詳細介紹了Apache Tomcat、Macromedia JRun和Caucho Resin,並提供了作者網站www.coreservlets.com上所有源代碼的在線訪問,可自由使用。

目錄
I. Servlet技術
1. Servlet和JSP技術概述
2. 服務器設置和配置
3. Servlet基礎
4. 處理客戶端請求:表單數據
5. 處理客戶端請求:HTTP請求標頭
6. 生成服務器響應:HTTP狀態碼
7. 生成服務器響應:HTTP響應標頭
8. 處理Cookie
9. 會話跟踪

II. JSP