FAQ
History
Previous Home Next Search
Feedback
Divider

Using JSTL

JSTL includes a wide variety of tags that naturally fit into discrete functional areas. Therefore, JSTL is exposed via multiple URIs to clearly show the functional areas it covers and give each area its own namespace. Table 6-1 summarizes these functional areas, subfunctions in each area, tags in each subfunction, and the prefixes used in the Duke's Bookstore application.

Table 6-1 JSTL Tags
Area
Function
Tags
Prefix
Core
Expression Language Support
catch
out
remove
set
c
Flow Control
choose
when
otherwise
forEach
forTokens
if
URL Management
import
param
redirect
param
url
param
XML
Core
out
parse
set
x
Flow Control
choose
when
otherwise
forEach
if
Transformation
transform
param
I18n
Locale
setLocale
fmt
Message formatting
bundle
message
param
setBundle
Number and date
formatting
formatNumber
formatDate
parseDate
parseNumber
setTimeZone
timeZone
Database
 
setDataSource
sql
SQL
query
dateParam
param
transaction
update
dateParam
param

The URIs used to access the libraries are:

  • Core: http://java.sun.com/jstl/core
  • XML: http://java.sun.com/jstl/xml
  • Internationalization: http://java.sun.com/jstl/fmt
  • SQL: http://java.sun.com/jstl/sql

The JSTL tag libraries comes in two versions (see Twin Libraries). The URIs for the JSTL-EL library are as shown above. The URIs for the JSTL-RT library are named append _rt to the end.

Divider
FAQ
History
Previous Home Next Search
Feedback
Divider

All of the material in The J2EE Tutorial for the Sun ONE Platform is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.

AltStyle によって変換されたページ (->オリジナル) /