Inside Servlets: Server-Side Programming for the Java Platform, 2/e (Paperback)

Dustin R. Callaway

  • 出版商: Addison Wesley
  • 出版日期: 2001-05-14
  • 定價: $1,575
  • 售價: 2.5$399
  • 語言: 英文
  • 頁數: 920
  • 裝訂: Paperback
  • ISBN: 0201709066
  • ISBN-13: 9780201709063
  • 相關分類: Java 程式語言Java 相關技術
  • 立即出貨(限量) (庫存=9)

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

相關主題

商品描述


Description

The Servlets best-seller for serious programmers -- thoroughly updated for the new Servlets 2.2 API!

  • Extensive new coverage: Deployment, security, authentication, internationalization, JSP, database integration, and more.
  • Advanced topics: state/session management, concurrency, cross-request communications, request forwarding, and partitioning.
  • CD-ROM: Extensive, fully updated library of ready-to-use servlet code.
Java servlets are the killer app for server-side programming. They represent the first cross-platform solution for server-side development that delivers the performance developers require -- and they've been incorporated into nearly every leading Web server platform. Inside Servlets, Second Edition teaches developers all they need to build robust, powerful servlets with Sun's new Servlets 2.2 API. It combines detailed, real-world projects, a comprehensive API reference, and extensive new coverage of crucial topics ranging from security to database integration. The book starts with a brief, crystal-clear introduction to servlet technology and architecture -- and then dives into the sophisticated techniques Java developers need to make the most of their servlets. Dustin Callaway provides a complete development framework for building Internet applications, as well as three start-to-finish sample servlets. He also offers outstanding, code-rich explanations of key techniques such as state/session management, cookies, thread-safe servlets, JDBC database access, cross-request communications, request forwarding, and partitioning. This Second Edition adds extensive coverage of deployment, servlet security and authentication, internationalization, JavaServer Pages, and more.

Dustin R. Callaway is a consultant, developer, author, and instructor specializing in Java and Internet technologies. He is currently a software engineer for Home Financial Network, specializing in developing Java-based Internet banking software. As senior programmer/analyst for Nu Skin International, he converted the firm's entire Web architecture to the Java Servlet API. He has served as a technical consultant for Arthur Andersen.

Back to Top


Table Of Contents

Foreword.
Preface.
Introduction.

I. INTRODUCTION TO WEB DEVELOPMENT.

Internet Basics 3.
Networks. Protocols. TCP/IP. Brief History of the Internet. Internet Addresses. Ports. Socket. Name Resolution. Firewalls. Protocol Tunneling. Proxy Servers. Internet Standards. Summary.

2. Web Basics.
Brief History of the Web. URLs. Web Browsers. Web Servers. Common Gateway Interface. Summary.

3. Beyond Web Basics.
HTTP. MIME. HTML Forms. Summary.

II. INTRODUCTION TO SERVLETS.


4. Why Servlets?
What Is a Servlet? Where Do Servlets Fit In? What Can Servlets Do? Why Are Servlets Better Than CGI? NSAPI/ISAPI. Summary.

5. Servlet Basics.
Basic Servlet Structure. Servlet Lifecycle. Servlet Reloading. Dissecting Two Sample Servlets. Summary.

6. Servlet API Basics.
HttpServlet. Class. GenericServlet. Class. ServletRequest Interface. HttpServletRequest Interface. ServletResponse Interface. HttpServletResponse Interface. Summary.

7. Writing Your First Servlet.
Servlet Requirements. Main Page. View Bulletins. Post Bulletin Page. Save Bulletin Page. Complete Bulletin Board Servlet. Summary 193

8 Running Servlets.
Apache Tomcat. Jrun. ServletExec. Resin. Summary.

9. Debugging Servlets. AHEADS = Servlet Debugging Process. Jbuilder. Forte for Java. VisualCaf. Summary.
10. Beyond Servlet API Basics.
ServletInputStream Class.ServletOutputStream Class. ServletConfig Interface. ServletContext Interface. ServletException Class. UnavailableException Class. Summary.

III. ADVANCED SERVLET CONCEPTS.


11. Writing Thread-Safe Servlets.
What Is Thread Safety? Synchronization. Service, doGet, and doPost Local Variables. SingleThreadModel Interface. Background Threads. Summary.

12. HTTP Redirects.
What Is an HTTP Redirect? HTTP Header Syntax for a Redirect. Sending a Redirect from a Servlet. Load-Balancing Servlet Using HTTP Redirects. Summary.

13. Cookies.
What Is a Cookie? HTTP Header Syntax for a Cookie. Setting Cookies with the Servlet API. Summary. @CHAPTER 14. State and Session Management.
What Is a Stateless Protocol? What Is a Session? State and Session Management Defined. State and Session Management Methods. Session Management with the Servlet API. Session Listeners and Events. Summary.

15. Request Forwarding, Server-Side Includes, Servlet Chaining.
Using the RequestDispatcher Object. Server-Side Includes. Servlet Chaining. Summary.

16. Database Access with JDBC.
JDBC Architecture. Accessing a Database. Basics. Advanced Database Concepts. Database Connection Pooling. Introduction to the MySQL Database. Summary.

17. Security.
Basic Authentication. Form-Based Authentication. Digest Authentication. Secure Sockets Layer. Summary.

18. JavaServer.
Introduction to JSP. Scope Rules. Implicit Objects. Directives. Scripting Elements. Comments. Actions. CCustom Tag Libraries. Using JSP and Servlets Together. Summary.

19. Packaging and Deployment. @AHEADS Building a Web Application Archive. Deploying on Apache Tomcat. Deploying on Jrun. Deploying on ServletExec. Summary.
20. Servlet Troubleshooting.
Protocol Explorer Utility. Diagnostics Servlet. Summary.

IV. SAMPLE SERVLETS.


21. Form Mailer Servlet.
22. File Upload Servlet.
23. Servlet Template Framework.
Building a Web Application. Inside the Template Server. Guest Book Sample Application.

V. SERVLET API QUICK REFERENCE.


24. Javax.Servlet Package.
Interface RequestDispatcher. Interface Servlet. Interface ServletConfig. Interface ServletContext. Interface ServletRequest. Interface ServletResponse. Interface SingleThreadModel. Class Generic Servlet. Class ServletInputStream. Class ServletOutputStream. Class ServletException. Class UnavailableException

25. Javax.Servlet.http Package. Interface HttpServletRequest. Interface HttpServletResponse. Interface HttpSession. Interface HttpSessionBindingListener. Class Cookie. Class HttpServlet. Class HttpSessionBindingEvent. Class HttpUtils.
26. Servlet API 2.3 Update.
Filtering. Application Lifecycle Events. Shared Library Dependencies. New Error and Security Attributes. Welcome Files. New Classes, Interfaces, and Methods.

VI. APPENDICES.


A: Common Well-Known Port Assignments.
B: Java Port Scanner.
C: The Internet Standardization Process.
D: URL Syntax for Common Protocols.
E: Meaning of URL Special Characters.
F: US-ASCII Encoding for Unsafe URL Characters.
G: Java HTTP Server.
H: HTTP Response Status Codes.
I: Common HTTP Request Header Fields.
J: Deployment Descriptor DTD.
K: Common MIME Types.
L: printStackTrace to String.
M: Servlet API Class Hierarchy Diagram.
Index. 0201709066T04272001


Back to Top

商品描述(中文翻譯)

《Servlets內幕 第二版》是一本針對嚴肅程式設計師的暢銷書籍,並已全面更新至新的Servlets 2.2 API!本書包含了以下內容:部署、安全性、驗證、國際化、JSP、資料庫整合等廣泛的新內容;高級主題:狀態/會話管理、並行處理、跨請求通訊、請求轉發和分割等;CD-ROM:包含大量全面更新的可直接使用的Servlet代碼庫。Java Servlets是服務器端編程的殺手級應用程序,它們代表了第一個跨平台的服務器端開發解決方案,提供了開發人員所需的性能,並已被納入幾乎所有領先的Web服務器平台中。《Servlets內幕 第二版》教導開發人員如何使用Sun的新Servlets 2.2 API來構建強大而穩健的Servlets。本書結合了詳細的實際項目、全面的API參考以及從安全性到資料庫整合等關鍵主題的廣泛新內容。書中首先簡要介紹了Servlet技術和架構,然後深入介紹了Java開發人員需要充分利用Servlets的高級技術。作者Dustin Callaway提供了一個完整的開發框架,用於構建互聯網應用程序,並提供了三個從頭到尾的示例Servlets。他還詳細解釋了關鍵技術,如狀態/會話管理、Cookie、線程安全的Servlets、JDBC資料庫訪問、跨請求通訊、請求轉發和分割等。第二版增加了大量的部署、Servlet安全性和驗證、國際化、JavaServer Pages等內容。作者Dustin R. Callaway是一位專注於Java和互聯網技術的顧問、開發人員、作者和講師。他目前是Home Financial Network的軟件工程師,專門開發基於Java的互聯網銀行軟件。作為Nu Skin International的高級程序員/分析師,他將該公司的整個Web架構轉換為Java Servlet API。他曾擔任Arthur Andersen的技術顧問。