وبلاگ بلیان

Java Servlet Programming: Help for Server Side Java Developers (Java (O'Reilly))

معرفی کتاب «Java Servlet Programming: Help for Server Side Java Developers (Java (O'Reilly))» نوشتهٔ Jason Hunter, with William Crawford، منتشرشده توسط نشر O'Reilly Media در سال 2001. این کتاب در 3 صفحه، فرمت pdf، زبان انگلیسی ارائه شده است. «Java Servlet Programming: Help for Server Side Java Developers (Java (O'Reilly))» در دستهٔ بدون دسته‌بندی قرار دارد.

Servlets are an exciting and important technology that ties Java to the Web, allowing programmers to write Java programs that create dynamic web content. Java Servlet Programming covers everything Java developers need to know to write effective servlets. It explains the servlet lifecycle, showing how to use servlets to maintain state information effortlessly. It also describes how to serve dynamic web content, including both HTML pages and multimedia data, and explores more advanced topics like integrated session tracking, efficient database connectivity using JDBC, applet-servlet communicaton, interservlet communication, and internationalization. Readers can use the book's numerous real-world examples as the basis for their own servlets. The second edition has been completely updated to cover the new features of Version 2.2 of the Java Servlet API. It introduces chapters on servlet security and advanced communication, and also introduces several popular tools for easier integration of servlet technology with dynamic web pages. These tools include JavaServer Pages (JSP), Tea, XMLC, and the Element Construction Set. In addition to complete coverage of 2.2 specification, Java Servlet programming, 2nd Edition, also contains coverage of the new 2.3 final draft specification. Java Servlet Programming, 2nd Edition......Page 1 Copyright......Page 2 Table of Contents......Page 3 Preface......Page 7 Servlet API 2.2......Page 8 Readers of the First Edition......Page 10 Audience......Page 11 About the Examples......Page 13 Organization......Page 14 Conventions Used in This Book......Page 17 Request for Comments......Page 18 Acknowledgments......Page 19 Acknowledgments from the First Edition......Page 20 1. Introduction......Page 22 1.1 History of Web Applications......Page 23 1.2 Support for Servlets......Page 26 1.3 The Power of Servlets......Page 29 2. HTTP Servlet Basics......Page 31 2.1 HTTP Basics......Page 32 2.2 The Servlet API......Page 34 2.3 Page Generation......Page 36 2.4 Web Applications......Page 41 2.5 Moving On......Page 46 3. The Servlet Lifecycle......Page 47 3.1 The Servlet Alternative......Page 48 3.2 Servlet Reloading......Page 53 3.3 Init and Destroy......Page 54 3.4 Single-Thread Model......Page 59 3.5 Background Processing......Page 61 3.6 Load on Startup......Page 63 3.7 Client-Side Caching......Page 65 3.8 Server-Side Caching......Page 67 4. Retrieving Information......Page 76 4.1 The Servlet......Page 78 4.2 The Server......Page 80 4.3 The Client......Page 87 5. Sending HTML Information......Page 116 5.1 The Structure of a Response......Page 117 5.2 Sending a Normal Response......Page 118 5.3 Using Persistent Connections......Page 120 5.4 Response Buffering......Page 121 5.5 Status Codes......Page 124 5.6 HTTP Headers......Page 126 5.7 When Things Go Wrong......Page 131 5.8 Six Ways to Skin a Servlet Cat......Page 140 6. Sending Multimedia Content......Page 142 6.1 WAP and WML......Page 143 6.2 Images......Page 150 6.3 Compressed Content......Page 162 6.4 Server Push......Page 165 7. Session Tracking......Page 168 7.1 User Authentication......Page 169 7.2 Hidden Form Fields......Page 170 7.3 URL Rewriting......Page 172 7.4 Persistent Cookies......Page 174 7.5 The Session Tracking API......Page 178 8. Security......Page 190 8.1 HTTP Authentication......Page 191 8.2 Form-Based Authentication......Page 196 8.3 Custom Authentication......Page 199 8.4 Digital Certificates......Page 204 8.5 Secure Sockets Layer (SSL)......Page 206 9. Database Connectivity......Page 212 9.1 Relational Databases......Page 214 9.2 The JDBC API......Page 216 9.3 Reusing Database Objects......Page 226 9.4 Transactions......Page 228 9.5 A Guestbook Servlet......Page 236 9.6 Advanced JDBC Techniques......Page 240 9.7 Beyond the Core......Page 243 10. Applet-Servlet Communication......Page 244 10.1 Communication Options......Page 245 10.2 Daytime Server......Page 249 10.3 Chat Server......Page 273 11. Servlet Collaboration......Page 287 11.1 Sharing Information......Page 288 11.2 Sharing Control......Page 291 12. Enterprise Servletsand J2EE......Page 298 12.1 Distributing Load......Page 299 12.2 Integrating with J2EE......Page 302 13. Internationalization......Page 307 13.1 Western European Languages......Page 308 13.2 Conforming to Local Customs......Page 311 13.3 Non-Western European Languages......Page 313 13.4 Multiple Languages......Page 317 13.5 Dynamic Language Negotiation......Page 320 13.6 HTML Forms......Page 327 14. The Tea Framework......Page 331 14.1 The Tea Language......Page 332 14.2 Getting Started......Page 334 14.3 Request Information......Page 336 14.4 Tea Administration......Page 339 14.5 Tea Applications......Page 342 14.6 A Tool Application......Page 347 14.7 Final Words......Page 356 15. WebMacro......Page 357 15.1 The WebMacro Framework......Page 358 15.2 Installing WebMacro......Page 361 15.3 WebMacro Directives......Page 366 15.4 WebMacro Templates......Page 369 15.5 A Tool Application......Page 373 15.6 Filters......Page 378 16. Element Construction Set......Page 379 16.1 Page Components as Objects......Page 380 16.2 Displaying a Result Set......Page 382 17. XMLC......Page 390 17.1 A Simple XML Compile......Page 391 17.2 The Manipulation Class......Page 396 17.3 A Tool Application......Page 399 18. JavaServer Pages......Page 405 18.1 Using JavaServer Pages......Page 406 18.2 Behind the Scenes......Page 408 18.3 Expressions and Declarations......Page 410 18.4 Directives......Page 411 18.5 JSP and JavaBeans......Page 415 18.6 Includes and Forwards......Page 419 18.7 A Tool Application......Page 421 18.8 Custom Tag Libraries......Page 425 19. Odds and Ends......Page 429 19.1 Parsing Parameters......Page 430 19.2 Sending Email......Page 435 19.3 Using Regular Expressions......Page 438 19.4 Executing Programs......Page 442 19.5 Using Native Methods......Page 446 19.6 Acting as an RMI Client......Page 447 19.7 Debugging......Page 449 19.8 Performance Tuning......Page 455 20. What's New in the Servlet 2.3 API......Page 457 20.1 Changes in the Servlet API 2.3......Page 458 20.2 Conclusion......Page 469 A. Servlet API Quick Reference......Page 470 GenericServlet......Page 471 RequestDispatcher......Page 474 Servlet......Page 476 ServletConfig......Page 478 ServletContext......Page 480 ServletException......Page 485 ServletInputStream......Page 487 ServletOutputStream......Page 489 ServletRequest......Page 491 ServletResponse......Page 496 SingleThreadModel......Page 499 UnavailableException......Page 500 B. HTTP Servlet API Quick Reference......Page 502 Cookie......Page 503 HttpServlet......Page 507 HttpServletRequest......Page 510 HttpServletResponse......Page 515 HttpSession......Page 519 HttpSessionBindingEvent......Page 523 HttpSessionBindingListener......Page 525 HttpSessionContext......Page 526 HttpUtils......Page 527 C. Deployment Descriptor DTD Reference......Page 529 ......Page 533 ......Page 534 ......Page 535 ......Page 536 ......Page 537 ......Page 538 ......Page 539 ......Page 540 ......Page 541 ......Page 542 ......Page 543 ......Page 544 ......Page 545 ......Page 546 ......Page 547 ......Page 548 ......Page 549 ......Page 550 ......Page 551 ......Page 552 ......Page 553 ......Page 554 ......Page 555 ......Page 556 ......Page 557 ......Page 558 ......Page 559 ......Page 560 ......Page 561 ......Page 562 ......Page 563 ......Page 564 ......Page 565 ......Page 566 ......Page 567 ......Page 568 ......Page 569 ......Page 570 ......Page 571 ......Page 572 ......Page 573 ......Page 574 ......Page 575 ......Page 576 ......Page 577 ......Page 578 ......Page 579 ......Page 580 ......Page 581 ......Page 582 ......Page 583 ......Page 584 ......Page 585 ......Page 586 ......Page 587 ......Page 588 ......Page 589 ......Page 590 ......Page 591 ......Page 592 ......Page 593 ......Page 594 ......Page 595 D. HTTP Status Codes......Page 596 E. Character Entities......Page 599 F. Charsets......Page 603 Colophon......Page 605 Index......Page 606 Java Servlet Programming covers everything Java developers need to know to write effective servlets. It explains the servlet lifecycle, showing how to use servlets to maintain state information effortlessly. It also describes how to serve dynamic web content, including both HTML pages and multimedia data, and it explores more advanced topics like integrated session tracking, efficient database connectivity using JDBC, applet-servlet communicaton, interservlet communication, and internationalization. The second edition of this popular book has been completely updated to cover the new features of Version 2.2 of the Java Servlet API. It introduces chapters on servlet security and advanced communication, and also introduces several popular tools for easier integration of servlet technology with dynamic web pages. These tools include JavaServer Pages (JSP), Tea, XMLC, and the Element Construction Set. In addition to complete coverage of the 2.2 specification, we have also added bonus material on the new 2.3 specification. This new edition of this book has been updated to add the new features of the Java Servlet API Version 2.2, and new chapters on servlet security and advanced communication. It also introduces several popular tools including JavaServer Pages (JSP), Tea, XMLC, and the Element Construction Set.
دانلود کتاب Java Servlet Programming: Help for Server Side Java Developers (Java (O'Reilly))