Advantage of JSTL
In : Subject : Java Web Development- Fast DevelopementJSTL provides many tags that simplifies the JSP.
- Code ReusabilityWe can use the JSTL tags in various pages.
- No need to use scriptlet tag It avoids the use of scriptlet tag.
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. |
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. |
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. |
internationalization tags |
The internationalization tags provide support for message formatting, number and date formatting etc. The url for the internationalization tags is http://java.sun.com/jsp/jstl/fmt and prefix is fmt. |
functions 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. |