Book description
A few years ago, the hype surrounding applets put Java on the map as a programming language for the Web. Today, Java servlets stand poised to take Java to the next level as a Web development language. The main reason is that servlets offer a fast, powerful, portable replacement for CGI scripts. The Java Servlet API, introduced as the first standard extension to Java, provides a generic mechanism to extend the functionality of any kind of server. Servlets are most commonly used, however, to extend Web servers, performing tasks traditionally handled by CGI programs. Web servers that can support servlets include: Apache, Netscape's FastTrack and Enterprise Servers, Microsoft's IIS, O'Reilly's WebSite, and JavaSoft's Java Web Server. The beauty of servlets is that they execute within the Web server's process space and they persist between invocations. This gives servlets tremendous performance benefits over CGI programs. Yet because they're written in Java, servlets are far less likely to crash a Web server than a C-based NSAPI or ISAPI extension. Servlets have full access to the various Java APIs and to third-party component classes, making them ideal for use in communicating with applets, databases, and RMI servers. Plus, servlets are portable between operating systems and between servers -- with servlets you can "write once, serve everywhere." Java Servlet Programming covers everything you need to know to write effective servlets and includes numerous examples that you can use as the basis for your own servlets. The book explains the servlet life cycle, showing how you can use servlets to maintain state information effortlessly. It also describes how to serve dynamic Web content, including both HTML pages and multimedia data. Finally, it explores more advanced topics like integrated session tracking, efficient database connectivity using JDBC, applet-servlet communication, inter-servlet communication, and internationalization.
Table of contents
-
Java Servlet Programming
- Preface
- 1. Introduction
- 2. HTTP Servlet Basics
- 3. The Servlet Life Cycle
- 4. Retrieving Information
- 5. Sending HTML Information
- 6. Sending Multimedia Content
- 7. Session Tracking
- 8. Security
- 9. Database Connectivity
- 10. Applet-Servlet Communication
- 11. Interservlet Communication
- 12. Internationalization
- 13. Odds and Ends
- A. Servlet API Quick Reference
- B. HTTP Servlet API Quick Reference
- C. HTTP Status Codes
- D. Character Entities
- E. Charsets
- Index
- Colophon
Product information
- Title: Java Servlet Programming
- Author(s):
- Release date: November 1998
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781565923911
You might also like
book
Java Servlet Programming, 2nd Edition
Servlets are an exciting and important technology that ties Java to the Web, allowing programmers to …
book
Java Web Services
For many Java developers, web services appeared to come out of nowhere. Its advantages are clear: …
book
Java EE 7 Development with NetBeans 8
Develop professional enterprise Java EE applications quickly and easily with this popular IDE In Detail NetBeans …
book
Practical JSF in Java EE 8: Web Applications in Java for the Enterprise
Master the Java EE 8 and JSF (JavaServer Faces) APIs and web framework with this practical, …