Inside Servlets - Dustin R. Callaway

Inside Servlets

Server-Side Programming for the Java™ Platform
Media-Kombination
464 Seiten
1999
Addison Wesley
978-0-201-37963-1 (ISBN)
49,95 inkl. MwSt
zur Neuauflage
  • Titel erscheint in neuer Auflage
  • Artikel merken
Zu diesem Artikel existiert eine Nachauflage
Providing a tutorial, advanced guide and reference, this book begins with an introduction to servlet technology, architecture and basic programming concepts. The CD-ROM includes all code examples from the book as well as several useful applications.
With superior performance, cross-platform portability, and crash resistance, Java(TM) servlets offer the technical advantages that Internet developers need and high traffic Web sites demand. Inside Servlets teaches everything you need to know to exploit the power and portability of Java servlets for your Internet applications. Providing a tutorial, advanced guide, and reference, the book begins with a comprehensive introduction to servlet technology, architecture, and basic programming concepts intended for client/server developers and others who may be new to Internet programming. It then progresses into the advanced techniques experienced developers need to create sophisticated, interactive Web sites. In particular, you will find thorough coverage of: *Java(TM) Servlet API *Debugging servlets *Concurrency (thread safety) *HTTP redirects *Cookies *State and session management *Server-side includes *Request forwarding *Cross-servlet and cross-request communications *Database access with JDBC(TM) The accompanying CD-ROM includes all code examples from the book as well as the following applications: *Java(TM) 2 Platform (Java(TM) 2 SDK, Standard Edition, v1.2) *JRun(TM) 2.2 servlet engine from Live(TM) Software, Inc.
*ServletKiller 1.1 servlet stress tester from Live Software, Inc. *ServletExec(TM) 2.0 servlet engine from New Atlanta Communications, LLC *Protocol Explorer troubleshooting utility written by the author In addition, the book features several annotated sample servlets that demonstrate concepts and provide working code for solving real-world programming challenges. A convenient Java Servlet API reference (based on the final 2.1 specification) keeps vital information at your fingertips, making this book an exceptionally valuable development companion. In all, this up-to-date resource provides the advanced concepts and practical techniques needed to make full use of Java servlets for your Internet development projects. 0201379635B04062001

Dustin R. Callaway is a well-known Internet programmer, consultant, trainer, and author. He currently works as a senior software engineer for Financial Fusion, Inc., a leading provider of financial services software. Dustin holds a B.S. degree in computer science from Brigham Young University and is the founder of SourceStream, an Internet consulting and software development firm. He can be reached via e-mail at dustin@insideservlets.com or on the Web at www.InsideServlets.com. 0201379635AB06152001

(Most chapters conclude with "Summary".)

Introduction.
I. INTRODUCTION TO WEB DEVELOPMENT.

1. Internet Basics.


Networks.



Protocols.



TCP/IP.



Brief History of the Internet.



Internet Addresses.



Ports.



Sockets.



Name Resolution.



Firewalls.



Protocol Tunneling.



Proxy Servers.



Internet Standards.



Summary.

2. Web Basics.


Brief History of the Web.



Inside 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?



What Can Servlets Do?



Why Are Servlets Better Than CGI?



Summary.

5. Servlet Basics.


Basic Servlet Structure.



Servlet Lifecycle.



Dissecting a Sample Servlet.



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 Page.



Post Bulletin Page.



Save Bulletin Page.



Complete Bulletin Board Servlet.



Summary.

8. Running Servlets.


JSDK Servlet Runner.



Java Web Server.



JRun.



ServletExec.



Summary.

9. Debugging Servlets.


ServletDebug Class.



Visual Cafe.



JBuilder.



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.



Summary.

12. HTTP Redirects.


What Is an HTTP Redirect?



HTTP Header Syntax for a Redirect.



Sending a Redirect with the Servlet API.



Summary.

13. Cookies.


What Is a Cookie?



HTTP Header Syntax for a Cookie.



Setting Cookies with the Servlet API.



Summary.

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.



Summary.

15. Server-Side Includes and Request Forwarding.


Server-Side Includes.



Using the RequestDispatcher Object.



Servlet Chaining.



Summary.

16. Database Access with JDBC.


JDBC Architecture.



Accessing a Database.



Sample JDBC Servlet.



Summary.

IV. SAMPLE SERVLETS.

17. Diagnostics Servlet.
18. Form Mailer Servlet.
19. File Upload Servlet.
V. SERVLET API QUICK REFERENCE.

20. javax.servlet Package.


Interface RequestDispatcher.



Interface Servlet.



Interface ServletConfig.



Interface ServletContext.



Interface ServletRequest.



Interface ServletResponse.



Interface SingleThreadModel.



Class GenericServlet.



Class ServletInputStream.



Class ServletOutputStream.



Class ServletException.



Class UnavailableException.

21. javax.servlet.http Package.


Interface HttpServletRequest.



Interface HttpServletResponse.



Interface HttpSession.



Interface HttpSessionBindingListener.



Class Cookie.



Class HttpServlet.



Class HttpSessionBindingEvent.



Class HttpUtils.

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. BrowserRequest HTTP Viewer.
K. Common MIME Types.
L. printStackTrace() to String.
M. Servlet API Class Hierarchy Diagram. 0201379635T04062001

Erscheint lt. Verlag 27.5.1999
Verlagsort Boston
Sprache englisch
Maße 188 x 234 mm
Gewicht 720 g
Themenwelt Mathematik / Informatik Informatik Web / Internet
ISBN-10 0-201-37963-5 / 0201379635
ISBN-13 978-0-201-37963-1 / 9780201379631
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich