Book description
Practical guide to using Java for Web-enabled applications and dynamic Web sites
In-depth coverage of the latest J2EE standards: servlets version 2.2 and JSP 1.1
Hundreds of completely portable, fully documented, industrial-strength examples
Configuration details for Apache Tomcat, Sun's JSWDK, and the Java Web Server
Servlets and JavaServer Pages provide a powerful, efficient, portable, and secure alternative to CGI programming for developing professional e-commerce sites and other Web-enabled applications. Here's all you need to leverage the latest J2EE servlet 2.2 and JSP 1.1 standards: real-world insight, advanced techniques, industrial-strength code, and hands-on coverage of three top servlet/JSP engines, including Apache Tomcat.
Part I gives exhaustive coverage of servlets 2.1 and 2.2. Starts with basic syntax, the servlet life cycle, and use of form data. Moves on to leveraging HTTP 1.1, cookies, and session tracking. Advanced topics include compressed Web content, persistent connections, dynamically generated images, and shopping carts for e-commerce.
Part II provides an in-depth guide to JSP 1.0 and 1.1, including advice on when to use servlets, JSP, or a combination of the two. Discusses every standard JSP element, including approaches for integrating JavaBeans. Advanced techniques include sharing beans, generating Excel spreadsheets, and defining custom JSP tag libraries.
Part III covers key supporting technologies: HTML forms, JDBC and database connection pooling, and the use of applets to communicate with servlets.
Servlet and JSP Quick Reference provides a handy syntax and usage summary.
Every Core Series book:
Demonstrates practical techniques used by professional developers
Features robust, thoroughly tested sample code and realistic examples
Focuses on the cutting-edge technologies you need to master today
Provides expert advice that will help you build superior software
Core Servlets and JavaServer Pages delivers:
Practical techniques for streamlining Web-enabled application development
Proven strategies for optimizing servlet and JSP performance
In-depth, hands-on coverage of the latest standards: servlets 2.2 and JSP 1.1
On-line access to all source code, available free for unrestricted use
Table of contents
- Copyright
- Acknowledgements
- Introduction
-
SERVLETS 2.1 AND 2.2
- OVERVIEW OF SERVLETS AND JAVASERVER PAGES
-
FIRST SERVLETS
- Basic Servlet Structure
- A Simple Servlet Generating Plain Text
- A Servlet That Generates HTML
- Packaging Servlets
- Simple HTML-Building Utilities
- The Servlet Life Cycle
- An Example Using Initialization Parameters
- An Example Using Servlet Initialization and Page Modification Dates
- Debugging Servlets
- WebClient: Talking to Web Servers Interactively
- HANDLING THE CLIENT REQUEST: FORM DATA
- HANDLING THE CLIENT REQUEST: HTTP REQUEST HEADERS
- ACCESSING THE STANDARD CGI VARIABLES
- GENERATING THE SERVER RESPONSE: HTTP STATUS CODES
- GENERATING THE SERVER RESPONSE: HTTP RESPONSE HEADERS
- HANDLING COOKIES
- SESSION TRACKING
- JAVASERVER PAGES
-
SUPPORTING TECHNOLOGIES
- USING HTML FORMS
-
USING APPLETS AS SERVLET FRONT ENDS
- Sending Data with GET and Displaying the Resultant Page
- A Multisystem Search Engine Front End
- Sending Data with GET and Processing the Results Directly (HTTP Tunneling)
- A Query Viewer That Uses Object Serialization and HTTP Tunneling
- Sending Data by POST and Processing the Results Directly (HTTP Tunneling)
- An Applet That Sends POST Data
- Bypassing the HTTP Server
- JDBC AND DATABASE CONNECTION POOLING
-
SERVLET AND JSP QUICK REFERENCE
- Overview of Servlets and JavaServer Pages
- First Servlets
- Handling the Client Request: Form Data
- Handling the Client Request: HTTP Request Headers
- Accessing the Standard CGI Variables
- Generating the Server Response: HTTP Status Codes
- Generating the Server Response: HTTP Response Headers
- Handling Cookies
- Session Tracking
- JSP Scripting Elements
- The JSP page Directive: Structuring Generated Servlets
- Including Files and Applets in JSP Documents
- Using JavaBeans with JSP
- Creating Custom JSP Tag Libraries
- Integrating Servlets and JSP
- Using HTML Forms
- Using Applets As Servlet Front Ends
- JDBC and Database Connection Pooling
Product information
- Title: Core Servlets and JavaServer Pages™
- Author(s):
- Release date: May 2000
- Publisher(s): Pearson
- ISBN: 9780130893406
You might also like
book
Java for the Web with Servlets, JSP, and EJB: A Developer’s Guide to J2EE Solutions
Java for Web with Servlets, JSP and EJB is the one book you need to master …
book
Java Servlet Programming
A few years ago, the hype surrounding applets put Java on the map as a programming …
book
More Servlets and JavaServer Pages™
Companion to the worldwide bestseller Core Servlets and JavaServer Pages Practical guide to the use of …
book
Core JSTL: Mastering the JSP™ Standard Tag Library
The breakthrough solution for easier, faster, and more powerful Web development. Powerful techniques for accelerating, simplifying, …