10.12.2012 Views

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using JSTL<br />

See “Troubleshooting Duke's Bookstore Database Problems” on page 102 for help with<br />

diagnosing common problems.<br />

JSTL includes a wide variety of tags that fit into discrete functional areas. To reflect this, as well<br />

as to give each area its own namespace, JSTL is exposed as multiple tag libraries. <strong>The</strong> URIs for<br />

the libraries are as follows:<br />

■ Core: http://java.sun.com/products/jsp/jstl/index.jsp<br />

■ XML: http://java.sun.com/products/jsp/jstl/index.jsp<br />

■ Internationalization: http://java.sun.com/products/jsp/jstl/index.jsp<br />

■ SQL: http://java.sun.com/products/jsp/jstl/index.jsp<br />

■ Functions: http://java.sun.com/products/jsp/jstl/index.jsp<br />

■ Core: http://java.sun.com/jsp/jstl/core<br />

■ XML: http://java.sun.com/jsp/jstl/xml<br />

■ Internationalization: http://java.sun.com/jsp/jstl/fmt<br />

■ SQL: http://java.sun.com/jsp/jstl/sql<br />

■ Functions: http://java.sun.com/jsp/jstl/functions<br />

Table 7–1 summarizes these functional areas along with the prefixes used in this tutorial.<br />

TABLE 7–1 JSTL Tags<br />

Area Subfunction Prefix<br />

Core Variable support c<br />

Flow control<br />

URL management<br />

Miscellaneous<br />

XML Core x<br />

Flow control<br />

Transformation<br />

I18N Locale fmt<br />

Message formatting<br />

Number and date formatting<br />

Database SQL sql<br />

Functions Collection length fn<br />

String manipulation<br />

Using JSTL<br />

Chapter 7 • <strong>Java</strong>Server Pages StandardTag Library 201

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!