FAQ
History |
Previous Home Next |
Search
Feedback |
DividerUsing 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 Supportcatch
out
remove
set
c
Flow Controlchoose
when
otherwise
forEach
forTokens
if
URL Managementimport
param
redirectparam
url
param
XML Coreout
parse
set
x
Flow Controlchoose
when
otherwiseforEach
if
Transformationtransform
param
I18n LocalesetLocale
fmt
Message formattingbundle
message
param
setBundle
Number and date
formattingformatNumber
formatDate
parseDate
parseNumber
setTimeZone
timeZone
DatabasesetDataSource
sql
SQLquery
dateParam
param
transaction
update
dateParamparam
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.
FAQ
History |
Previous Home Next |
Search
Feedback |
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.