Javatpoint Logo
Javatpoint Logo

JSTL (JSP Standard Tag Library)

The JSP Standard Tag Library (JSTL) represents a set of tags to simplify the JSP development.

Advantage of JSTL

  1. Fast Developement JSTL provides many tags that simplifies the JSP.
  2. Code Reusability We can use the JSTL tags in various pages.
  3. No need to use scriptlet tag It avoids the use of scriptlet tag.

JSTL Tags

There JSTL mainly provides 5 types of tags:

Tag NameDescription
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.

For creating JSTL application, you need to load jstl.jar file.

Download jstl.jar file

download jstl1.2.jar file
Next TopicJSTL Core Tags







Please Share

facebook twitter google plus pinterest tumbler

Latest 4 Tutorials