The JSP Standard Tag Library (JSTL) is a collection of standard JSP tags that perform
several common tasks. This frees us from having to develop custom tags for these
tasks, or from using a mix of tags from several organizations to do our work. JSTL
contains core tags that perform, among other things, conditional logic and iteration
through collections; format tags that do String formatting and internationalization;
SQL tags that interact with a database; XML tags for XML processing. Additionally,
JSTL contains a number of functions that perform several tasks, most of which are for
String manipulation.
In this chapter, we will cover each of the JSTL tag libraries, providing examples
for the most commonly used tags and functions. Topics we will cover in this
chapter include:
-
Core JSTL tag library
-
Formatting JSTL tag library
-
SQL JSTL tag library
-
XML JSTL tag library
-
JSTL functions