Book description
JavaServer Pages (JSP) has built a huge following since the release of JSP 1.0 in 1999, providing Enterprise Java developers with a flexible tool for the development of dynamic web sites and web applications. While new point releases over the years, along with the introduction of the JSP Standard Tag Library (JSTL), have incrementally improved the rough areas of the first version of the JSP specification, JSP 2.0 takes this technology to new heights.JavaServer Pages, Third Edition, is completely revised and updated to cover the JSP 2.0 and JSTL 1.1 specifications. It includes detailed coverage of the Expression Language (EL) incorporated into JSP 2.0, the JSTL 1.1 tag libraries and the new function library, the new tag file format that enables custom tag library development without Java code, the simplified Java tag library API, improvements in the JSP XML syntax, and more. Further, it details setup of the Apache Tomcat server, JSP and JSTL syntax and features, error handling and debugging, authentication and personalization, database access, XML processing, and internationalization.This book recognizes the different needs of the two groups of professionals who want to learn JSP: page authors interested in using JSP elements in web pages, and programmers concerned with learning the JSP API and using JSP effectively as a part of an enterprise application. If you're in the first group, you'll learn from the practical web application examples in the second part of the book. If you're in the latter group, you'll appreciate the detailed coverage of advanced topics in the third part, such as how to integrate servlets and JavaBeans components with JSP using the popular Apache Struts MVC framework, and how to develop custom tag libraries using the JSP API, with realistic examples that you can use as a springboard for your own libraries."Hans Bergsten, a JSP expert group veteran and one of our most active contributors, has thoroughly and accurately captured the new features of JSP 2.0 and JSTL 1.1 in a way that is well-organized and easy to understand. With excellent, to-the-point examples, this book is a 'must have' for any serious JSP 2.0 developer."--Mark Roth, JSP 2.0 Specification Lead, Sun Microsystems, Inc.Hans Bergsten is the founder of Gefion Software, a company focused on Java services and products based on J2EE technologies. Hans has been an active participant in the working groups for both the servlet and JSP specifications since their inception and contributes to other related JCP specifications, such as JSP Standard Tag Library (JSTL) and JavaServer Faces (JSF), and, as one of the initial members of the Apache Jakarta Project Management Committee, helped develop the Apache Tomcat reference implementation for the servlet and JSP specifications.
Publisher resources
Table of contents
- A Note Regarding Supplemental Files
- Preface
-
I. JSP Application Basics
- 1. Introducing JavaServer Pages
- 2. HTTP and Servlet Basics
- 3. JSP Overview
- 4. Setting Up the JSP Environment
-
II. JSP Application Development
- 5. Generating Dynamic Content
- 6. Using JavaBeans Components in JSP Pages
- 7. Using Custom Tag Libraries and the JSP Standard Tag Library
- 8. Processing Input and Output
- 9. Error Handling and Debugging
- 10. Sharing Data Between JSP Pages, Requests, and Users
- 11. Developing Custom Tag Libraries as Tag Files
-
12. Accessing a Database
-
12.1. Accessing a Database from a JSP Page
- 12.1.1. Application Architecture Example
- 12.1.2. Table Example
- 12.1.3. The DataSource Interface and JDBC Drivers
- 12.1.4. Reading and Storing Information in a Database
- 12.1.5. Generating HTML from a Query Result
- 12.1.6. Searching for Rows Based on Partial Information
- 12.1.7. Deleting Database Information
- 12.1.8. Displaying Database Data over Multiple Pages
- 12.2. Validating Complex Input Without a Bean
- 12.3. Using Transactions
- 12.4. Application-Specific Database Actions
-
12.1. Accessing a Database from a JSP Page
-
13. Authentication and Personalization
- 13.1. Container-Provided Authentication
- 13.2. Application-Controlled Authentication
- 13.3. Other Security Concerns
- 14. Internationalization
- 15. Working with XML Data
- 16. Using Scripting Elements
-
17. Bits and Pieces
- 17.1. Buffering
- 17.2. Including Page Segments
- 17.3. Global Configuration Options
- 17.4. Mixing Client-Side and Server-Side Code
- 17.5. Precompiling JSP Pages
- 17.6. Preventing Caching of JSP Pages
-
17.7. Writing JSP Pages as XML Documents
- 17.7.1. Identifying a JSP Document
- 17.7.2. Custom Tag Library Declarations
- 17.7.3. Generating a DOCTYPE Declaration
- 17.7.4. XML Syntax for JSP Directives and Scripting Elements
- 17.7.5. Generating Elements Dynamically
- 17.7.6. Encoding Non-XML Data and Special Characters
- 17.7.7. Using the <jsp:root> Element
- 17.7.8. XML Declaration Generation
- 17.8. How URIs Are Interpreted
-
III. JSP in J2EE and JSP Component Development
- 18. Web Application Models
- 19. Combining JSP and Servlets
- 20. Developing JavaBeans Components for JSP
-
21. Developing Custom Tag Libraries Using Java
- 21.1. Developing Simple Tag Handlers
- 21.2. Developing Classic Tag Handlers
- 21.3. Developing Tag Library Functions
- 21.4. Creating the Tag Library Descriptor
- 21.5. Packaging and Installing a Tag Library
- 22. Advanced Custom Tag Library Features
- 23. Integrating Custom Code with JSTL
- 24. Database Access Strategies
-
IV. Appendixes
- A. JSP Elements Reference
- B. JSTL Actions and API Reference
- C. JSP Expression Language Reference
- D. JSP API Reference
- E. Book Example Custom Actions and API Reference
-
F. Web Application Structure and Deployment Descriptor Reference
- F.1. Web Application File Structure
-
F.2. Web Application Deployment Descriptor
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- Reference Section
- F.2.1. Example Application Deployment Descriptor
- F.3. Creating a WAR File
- About the Author
- Colophon
- Copyright
Product information
- Title: JavaServer Pages, 3rd Edition
- Author(s):
- Release date: December 2003
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596005634
You might also like
book
Access 2013: The Missing Manual
Unlock the secrets of Access 2013 and discover how to use your data in creative ways. …
book
Special Edition Using Java™ Server Pages and Servlets
Special Edition Using JSP and Servlets starts by detailing the evolution of web servers that led …
article
Reinventing the Organization for GenAI and LLMs
Previous technology breakthroughs did not upend organizational structure, but generative AI and LLMs will. We now …
book
ActionScript 3.0 Cookbook
Well before Ajax and Microsoft's Windows Presentation Foundation hit the scene, Macromedia offered the first method …