Core JSTL: Mastering the JSP Standard Tag Library
David Geary

ISBN-10: 0131001531
ISBN-13: 9780131001534

Publisher: Prentice Hall
Copyright: 2003
Format: Paper; 608 pp
Published: 11/26/2002

Suggested retail price: $49.99
Buy from myPearsonStore

Core JSTL is an in-depth examination of the JavaServer Pages Standard Tag Library (JSTL), which provides a standard set of custom tags, including tags for iteration, accessing URLs, database access, internationalization, and the manipulation and transformation of XML documents, that web page authors and software developers can use to develop Web sites.

A comprehensive reference for the JavaServer Pages Standard Tag Library (JSTL) - the powerful new addition to the JavaServer Pages standard.

  • JSTL will be hugely popular because it simplifies the creation of complex data-driven applications.
  • Explains how developers can access databases and manipulate and transform XML documents from within JSP pages.
  • Part of the Sun Microsystems Press Series.



Preface.


Acknowledgments.


1. Introduction.

JSTL Overview. Getting Started. A Simple JSTL Web Application. JSTL Design Principles.



2. The JSTL Expression Language.

Expression Language Overview. Expressions. Identifiers. Operators. Type Coercion. Literal Values. Implicit Objects. Method Invocation. EL Expressions in Custom Actions. Common Mistakes.



3. General-Purpose and Conditional Actions.

General-Purpose Actions. Conditional Actions. Using Conditional and General-Purpose Actions Together. Conditional Custom Actions.



4. Iteration Actions.

The <c:forEach> Action. The <c:forTokens> Action. Iteration Status. Custom Iteration Actions.



5. Url Actions.

Overview. The <c:import> Action. The <c:redirect> Action. The <c:url> Action. The <c:param> Action. Accessing External Resources. Accessing Resources in Foreign Contexts. Redirecting a Response.



6. Configuration Settings.

Overview. The Config Class.



7. I18N Actions.

Overview. I18N and L10N. Localization Contexts. An Overview of the I18N Actions. Use of <fmt:message. Request Encoding. I18N Custom Actions.



8. Formatting Actions.

Formatting and Parsing Numbers. Formatting and Parsing Dates and Times. Using Time Zones. Determining a Formatting Locale.



9. Database Actions.

Overview. A Simple Database. How JSTL Locates Data Sources. Creating Data Sources. Querying a Database. Updating a Database. Executing Database Transactions. Implementing Database Custom Actions.



10. XML Actions.

A Simple XML File. XML Actions Overview. XPath Overview. Parsing XML. Using Scoped Variables in XPath Expressions. Transforming XML with XSLT. Filtering XML. Accessing External Entities.



11. JSTL Reference.

Action Reference Index. General-Purpose Actions. Conditional Actions. Iteration Actions. URL Actions. Internationalization Actions. Formatting Actions. Database Actions. XML Core Actions. XML Flow Control Actions. XML Transform Actions.



Appendix A. Setting Up The MySQL Database Used In This Book.

Download and Install MySQL. Download and Install a JDBC Driver for MySQL. Create a MySQL Database for Core JSTL Examples. Populate the MySQL Database Used in Core JSTL Examples.



Index.

DAVID M. GEARY is the president of Sabreware, Inc., a training and consulting company focusing on server-side Java technology. He has been developing object-oriented software for nearly 20 years and was among the pioneers who worked on the Java platform APIs at Sun Microsystems from 1994 to 1997. Geary is the author of six books on Java technology, including the runaway best-selling Graphic Java series, and Advanced JavaServer Pages. A member of the expert group that developed JSTL, he is also a contributor to the Apache Struts JSP software application framework and wrote questions for the Web component developer certification exam. Since 1996, he has been a columnist for Java Report magazine. He also writes JavaWorld's Java Design Patterns column.

The breakthrough solution for easier, faster, and more powerful Web development.

  • Powerful techniques for accelerating, simplifying, and standardizing Web application development
  • In-depth coverage of JSTL 1.0, including built-in tags, the new JSTL expression language, and custom tag development
  • Written for both experienced Java platform developers and Web page authors
  • By the best-selling author of Graphic Java and Advanced JavaServer Pages

Using JSTL, software developers and Web page authors can create robust, flexible Web applications more quickly and easily than ever before. Now, best-selling author and JSTL expert David Geary presents the definitive guide to JSTL: its built-in tags, powerful expression language, and extensibility. Through practical examples and extensive sample code, Geary demonstrates how JSTL simplifies, streamlines, and standardizes a wide range of common Web development tasks and helps you build Web applications far more easily than JavaServer Pages technology alone.

Key topics covered:

  • Building HTML forms; accessing form data, JavaBeans components (beans), collections, and maps; constructing URLs and importing their content; redirecting HTTP responses; iterating over collections of objects; handling errors
  • Localizing Web sites for multiple languages and countries, including localizing text and formatting and parsing numbers, currencies, percents, and dates.
  • Creating and accessing data sources, making queries and iterating over the results; performing database inserts, updates, and deletes; executing database transactions
  • Parsing XML documents; using XPath with JSTL custom actions; transforming XML with XSLT, filtering XML; accessing external entities

Core JSTL shows you how to:

  • Use JSTL to simplify Web development tasks
  • Use the new JSTL expression language
  • Access databases and execute transactions
  • Develop internationalized Web sites
  • Work with XML documents and JSP technology
  • Extend JSTL with custom tags

View a Sample Chapter PDF: /samplechapter/0131001531.pdf

Pearson Higher Education offers special pricing when you choose to package your text with other student resources. If you're interested in creating a cost-saving package for your students, contact your Pearson Higher Education representative for pricing and ordering information.

Pearson Higher Education offers special pricing when you choose to package your text with other student resources. If you're interested in creating a cost-saving package for your students contact your Pearson Higher Education representative.


Copyright ©2008 Pearson Education. All rights reserved. Legal Notice | Privacy Policy | Permissions