Using JSTL
Using JSTL
See
for help with
diagnosing common problems.
Using JSTL
JSTL includes a wide variety of tags that fit into discrete functional areas. To reflect this, as well
as to give each area its own namespace, JSTL is exposed as multiple tag libraries. The URIs for
the libraries are as follows:
Core
:
XML
:
Internationalization
:
SQL
:
Functions
:
summarizes these functional areas along with the prefixes used in this tutorial.
TABLE 71
JSTL Tags
Area
Subfunction
Prefix
Core
Variable support
c
Flow control
URL management
Miscellaneous
XML
Core
x
Flow control
Transformation
I18N
Locale
fmt
Message formatting
Number and date formatting
Database
SQL
sql
Functions
Collection length
fn
String manipulation
Thus, the tutorial references the JSTL core tags in JSP pages by using the following taglib
directive:
<%@ taglib uri=
"http://java.sun.com/jsp/jstl/core" prefix="c" %>
Using JSTL
Chapter 7 · JavaServer Pages Standard Tag Library
203