JSTL is the Java Server Pages Standard Tag Library. JSTL encapsulates, as simple tags, core functionality common to many JSP applications.
JSTL includes core tags to support iteration, conditionals, and expression-language support. It also supports EL functions for string manipulation. how these tags work, you should read the JSTL specification
Iteration
The core iteration tag is
Conditionals
JSTL supports a simple conditional
Expression language
JSTL provides a few tags to facilitate use of the expression language.
Text inclusion
JSP supports the jsp:include tag, but this standard action is limited in that it only supports relative URLs. JSTL introduces the c:import tag, which lets you retrieve absolute URLs. For instance, you can use c:import to retrieve information from the web using HTTP URLs, or from a file server using an FTP URL. The tag also has some advanced support for performance optimizations, avoiding unnecessary buffering of data that's retrieved.
I18N-capable text formatting
Formatting data is one of the key tasks in many JSP pages. JSTL introduces tags to support data formatting and parsing. These tags rely on convenient machinery to support internationalized applications.
XML manipulation
You can't look anywhere these days without seeing XML, and JSTL gives you convenient support for manipulating it from your JSP pages. Parse documents, use XPath to select content, and perform XSLT transformations from within your JSP pages.
Database access
Easily access relational databases using the SQL actions. You can perform database queries, easily access results, perform updates, and group several operations into a transaction.
Functions
String manipulations can be performed using the functions provided in JSTL.
Iterator Tags
The forEach tag allows you to iterate over a collection of objects.
The forTokens tag is used to iterate over a collection of tokens separated by a delimiter.
Conditionals if else if ladder in jstl :-
No comments:
Post a Comment