Jakarta Standard Tag Library Explained

JSTL
Latest Release Version:3.0.0
Operating System:Multiplatform
File Ext:.jsp .jspf .jsf

The Jakarta Standard Tag Library (JSTL; formerly JavaServer Pages Standard Tag Library) is a component of the Java EE Web application development platform. It extends the JSP specification by adding a tag library of JSP tags for common tasks, such as XML data processing, conditional execution, database access, loops and internationalization.

Specification

JSTL was developed under the Java Community Process (JCP) as Java Specification Request (JSR) 52. On May 8, 2006, JSTL 1.2 was released, followed by JSTL 1.2.1 on Dec 7, 2011.[1]

In addition to JSTL, the JCP has the following JSRs to develop standard JSP tag libraries:

General Responsibilities

JSTL provides an effective way to embed logic within a JSP page without using embedded Java code directly. The use of a standardized tag set, rather than breaking in and out of Java code, leads to more maintainable code and enables separation of concerns between the development of the application code and user interface.

Tag Library Descriptor

There are a total of six JSTL Tag Library Descriptors:

A Tag Library Descriptor is also known as TLD. A TLD is an XML document, so it is case-sensitive.

Core Library

The JSTL core library is the most commonly used library and holds the core tags for common tasks. Examples of common tasks include if/else statements and loops. It is mandatory to use a taglib directive to specify the URI of the JSTL core library using a prefix. Although there are many options for the prefix, the c prefix is most commonly chosen prefix for this library.

See also

References

External links

Notes and References

  1. Web site: Maven Central Repository Search.
  2. Web site: JSTL core (TLDDoc Generated Documentation).
  3. Web site: JSTL FMT (TLDDoc Generated Documentation).
  4. Web site: JSTL SQL (TLDDoc Generated Documentation).
  5. Web site: JSTL XML (TLDDoc Generated Documentation).
  6. Web site: JSTL functions (TLDDoc Generated Documentation).
  7. Web site: Javax.servlet.JSP.JSTL.TLV (Java EE 6).
  8. Web site: JSTL-api.
  9. http://docs.oracle.com/javaee/ Java EE Technical Documentation