Buying Options
JavaServer Pages, Second Edition
Safari Books Online
Add to Cart
What is this?

Product Editions

Please consider the latest edition.

  1. JavaServer Pages, Third Edition - December 2003
  2. JavaServer Pages, Second Edition - August 2002
Description
Filled with useful examples and the depth, clarity, and attention to detail that made the first edition so popular with web developers, JavaServer Pages, 2nd Edition is completely revised and updated to cover the substantial changes in the 1.2 version of the JSP specifications, and includes coverage of the new JSTL Tag libraries-an eagerly anticipated standard set of JSP elements for the tasks needed in most JSP applications, as well as thorough coverage of Custom Tag Libraries.
Full Description
Table of Contents
  1. JSP Application Basics

    1. Chapter 1 Introducing JavaServer Pages

      1. What Is JavaServer Pages?
      2. Why Use JSP?
      3. What You Need to Get Started
    2. Chapter 2 HTTP and Servlet Basics

      1. The HTTP Request/Response Model
      2. Servlets
    3. Chapter 3 JSP Overview

      1. The Problem with Servlets
      2. The Anatomy of a JSP Page
      3. JSP Processing
      4. JSP Application Design with MVC
    4. Chapter 4 Setting Up the JSP Environment

      1. Installing the Java Software Development Kit
      2. Installing the Tomcat Server
      3. Testing Tomcat
      4. Installing the Book Examples
      5. Example Web Application Overview
  2. JSP Application Development

    1. Chapter 5 Generating Dynamic Content

      1. Creating a JSP Page
      2. Installing a JSP Page
      3. Running a JSP Page
      4. Using JSP Directive Elements
      5. Using Template Text
      6. Using JSP Action Elements
    2. Chapter 6 Using JavaBeans Components in JSP Pages

      1. What Is a Bean?
      2. Declaring a Bean in a JSP Page
      3. Reading Bean Properties
      4. Setting Bean Properties
    3. Chapter 7 Using Custom Tag Libraries and the JSP Standard Tag Library

      1. What Is a Custom Tag Library?
      2. Installing a Custom Tag Library
      3. Declaring a Custom Tag Library
      4. Using Actions from a Tag Library
    4. Chapter 8 Processing Input and Output

      1. Reading Request Parameter Values
      2. Validating User Input
      3. Formatting HTML Output
    5. Chapter 9 Error Handling and Debugging

      1. Dealing with Syntax Errors
      2. Debugging a JSP Application
      3. Dealing with Runtime Errors
    6. Chapter 10 Sharing Data Between JSP Pages, Requests, and Users

      1. Passing Control and Data Between Pages
      2. Sharing Session and Application Data
      3. Online Shopping
      4. Memory Usage Considerations
    7. Chapter 11 Accessing a Database

      1. Accessing a Database from a JSP Page
      2. Validating Complex Input Without a Bean
      3. Using Transactions
      4. Application-Specific Database Actions
    8. Chapter 12 Authentication and Personalization

      1. Container-Provided Authentication
      2. Application-Controlled Authentication
      3. Other Security Concerns
    9. Chapter 13 Internationalization

      1. How Java Supports Internationalization and Localization
      2. Generating Localized Output
      3. A Brief History of Bits
      4. Handling Localized Input
    10. Chapter 14 Working with XML Data

      1. Generating an XML Response
      2. Transforming XML into HTML
      3. Transforming XML into a Device-Dependent Format
      4. Processing XML Data
    11. Chapter 15 Using Scripting Elements

      1. Using page Directive Scripting Attributes
      2. Implicit JSP Scripting Objects
      3. Using Scriptlets
      4. Using Expressions
      5. Using Declarations
      6. Mixing Action Elements and Scripting Elements
      7. Dealing with Scripting Syntax Errors
    12. Chapter 16 Bits and Pieces

      1. Buffering
      2. Including Page Fragments
      3. Mixing Client-Side and Server-Side Code
      4. Precompiling JSP Pages
      5. Preventing Caching of JSP Pages
      6. Writing JSP Pages as XML Documents
      7. How URIs Are Interpreted
  3. JSP in J2EE and JSP Component Development

    1. Chapter 17 Web Application Models

      1. The Java 2 Enterprise Edition Model
      2. The MVC Design Model
      3. Scalability
    2. Chapter 18 Combining JSP and Servlets

      1. Servlets, Filters, and Listeners
      2. Picking the Right Component Type for Each Task
      3. Initializing Shared Resources Using a Listener
      4. Access Control Using a Filter
      5. Centralized Request Processing Using a Servlet
      6. Using a Common JSP Error Page
    3. Chapter 19 Developing JavaBeans Components for JSP

      1. Beans as JSP Components
      2. JSP Bean Examples
      3. Unexpected <jsp:setProperty> Behavior
    4. Chapter 20 Developing Custom Tag Libraries

      1. Tag Extension Basics
      2. Developing a Simple Action
      3. Developing an Iterating Action
      4. Processing the Action Body
      5. Handling Exceptions
      6. The Tag-Handler Lifecycle and What It Means to You
      7. Creating the Tag Library Descriptor
      8. Packaging and Installing a Tag Library
    5. Chapter 21 Advanced Custom Tag Library Features

      1. Developing Cooperating Actions
      2. Validating Syntax
      3. Using a Listener in a Tag Library
      4. Dynamic Attribute Values and Types
    6. Chapter 22 Integrating Custom Code with JSTL

      1. Using the Expression Language in Custom Actions
      2. Setting and Using Configuration Variables
      3. Integrating Custom Conditional Actions
      4. Integrating Custom Iteration Actions
      5. Integrating Custom I18N Actions
      6. Integrating Custom Database Actions
      7. Using JSTL Tag Library Validators
    7. Chapter 23 Database Access Strategies

      1. JDBC Basics
      2. Using Connections and Connection Pools
      3. Making a Connection Pool Available to Application Components
      4. Using a Generic Database Bean
      5. Developing Application-Specific Database Components
  4. Appendixes

    1. Appendix A JSP Elements Reference

      1. Directive Elements
      2. Scripting Elements
      3. Action Elements
      4. Comments
      5. Escape Characters
    2. Appendix B JSTL Actions and API Reference

      1. JSTL Library URIs and Default Prefixes
      2. Core Library Actions
      3. Internationalization and Formatting Actions
      4. Database Access Actions
      5. XML Processing Actions
      6. Support and Utility Types
      7. Configuration Settings
    3. Appendix C JSTL Expression Language Reference

      1. Syntax
      2. Variables
      3. Data Types
      4. Expressions and Operators
    4. Appendix D JSP API Reference

      1. Implicit Variables
      2. Other Servlet Types Accessible Through Implicit Variables
      3. Tag Handler Types
      4. Tag Library Validation Types
      5. Other JSP Types
    5. Appendix E Book Example Custom Actions and API Reference

      1. Generic Custom Actions
      2. Generic Utility Classes
    6. Appendix F Web Application Structure and Deployment Descriptor Reference

      1. Web Application File Structure
      2. Web Application Deployment Descriptor
      3. Creating a WAR File
  1. Colophon

View Full Table of Contents
Product Details
Title:
JavaServer Pages, Second Edition
By:
Hans Bergsten
Publisher:
O'Reilly Media
Formats:
  • Print
  • Safari Books Online
Print Release:
August 2002
Pages:
688
Print ISBN:
978-0-596-00317-3
| ISBN 10:
0-596-00317-X
Customer Reviews
About the Author
  1. Hans Bergsten

    Hans Bergsten is the founder of Gefion Software, a company focused on Java services and products based on the J2EE technlogies. Hans has been an active participant in the working groups for both the servlet and JSP specifications from the time they were formed. He also contributes to other related JCP specifications, such as JSP Standard Tag Libraries (JSTL), and helped get the development of the Apache Tomcat reference implementation for servlet and JSP started as one of the initial members of the Apache Jakarta Project Management Committee.

    View Hans Bergsten's full profile page.

Colophon

Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of JavaServer Pages, Second Edition, is a grey wolf (Canis lupus), also known as a timberwolf. Once common all over North America, grey wolves wander the open tundra and forests of Alaska, Canada, and parts of the United States-- just half their former range. These social animals mate for life and live in packs of two to fifteen animals; the strongest male is the leader of the group. Only the dominant pair in a pack breeds, the female giving birth to an average of seven pups sometime in April, May, or June, and all members of the group care for the young. Mary Anne Weeks Mayo was the copy editor and production editor for JavaServer Pages, Second Edition. Tatiana Apandi Diaz, Emily Quill, and Jane Ellin provided quality control. Phil Dangler, Judy Hoer, and Kimo Carter provided production assistance. Tom Dinse wrote the index.

Pam Spremulli designed the cover of this book, based on a series design by Edie Freedman. The cover image is an original engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.

Melanie Wang designed the interior layout, based on a series design by David Futato. This book was converted to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. The tip and warning icons were drawn by Christopher Bing.

  • Book cover of JavaServer Pages