| JSTL | |
|---|---|
| Stable release | 3.0.0 / May 14, 2022; 3 years ago (2022-05-14) |
| OS | Multiplatform |
| Filename extensions | .jsp .jspf .jsf |
| Website | projects |
TheJakarta Standard Tag Library (JSTL; formerlyJavaServer Pages Standard Tag Library) is a component of theJava EEWeb application development platform. It extends theJSP specification by adding atag library of JSP tags for common tasks, such asXML data processing, conditional execution,database access, loops andinternationalization.
JSTL was developed under theJava Community Process (JCP) asJava 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:
JSTL provides an effective way to embed logic within aJSP page without using embeddedJava code directly. The use of a standardized tag set, rather than breaking in and out of Java code, leads to more maintainable code and enablesseparation of concerns between the development of theapplication code anduser interface.
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.[10]
The JSTL core library is the most commonly used library[11] and holds the core tags for common tasks.[12] Examples of common tasks include if/else statements and loops.[12] It is mandatory to use ataglib directive to specify the URI of the JSTL core library using a prefix.[11] Although there are many options for the prefix, thec prefix is most commonly chosen prefix for this library.[11]