JSTL (JSP Standard Tag Library)
The JSP Standard Tag Library (JSTL) represents a set of tags to simplify the JSP development.
# Advantage of JSTL
- Fast Developement JSTL provides many tags that simplifies the JSP.
- Code Reusability We can use the JSTL tags in various pages.
- No need to use scriptlet tag It avoids the use of scriptlet tag.
# JSTL Tags
There JSTL mainly provides 5 types of tags:
Tag Name | Description |
---|---|
Core tags | The JSTL core tag provide variable support, URL management, flow control etc. The url for the core tag is http://java.sun.com/jsp/jstl/core . The prefix of core tag is c. |
Function tags | The functions tags provide support for string manipulation and string length. The url for the functions tags is http://java.sun.com/jsp/jstl/functions and prefix is fn. |
Formatting tags | The Formatting tags provide support for message formatting, number and date formatting etc. The url for the Formatting tags is http://java.sun.com/jsp/jstl/fmt and prefix is fmt. |
XML tags | The xml sql tags provide flow control, transformation etc. The url for the xml tags is http://java.sun.com/jsp/jstl/xml and prefix is x. |
SQL tags | The JSTL sql tags provide SQL support. The url for the sql tags is http://java.sun.com/jsp/jstl/sql and prefix is sql. |