JavaServer Pages Standard Tag Library
Stable release | 1.2.1 / dec 2011 |
---|---|
OS | Multiplatform |
Filename extensions | .jsp .jspf .jsf |
Website |
The JavaServer Pages Standard Tag Library (JSTL) 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.
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]
JSTL provides an effective way to embed logic within a JSP page without using embedded Java code directly. The use of a standardised 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.
There are a total of six JSTL tag library descriptors:
- http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/c/tld-summary.html
- Core library. E.g. <c:if> and <c:when>
- http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/fmt/tld-summary.html
- i18n-capable formatting library
- http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/sql/tld-summary.html
- Database tag library, contains tags for querying, creating and updating database table.
- http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/x/tld-summary.html
- XML library
- http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/fn/tld-summary.html
- functions library
- http://docs.oracle.com/javaee/6/api/javax/servlet/jsp/jstl/tlv/package-summary.html
- TLVs allow translation-time validation of the XML view of a JSP page. The TLVs provided by JSTL allow tag library authors to enforce restrictions regarding the use of scripting elements and permitted tag libraries in JSP pages.
In addition to JSTL, the JCP has the following JSRs to develop standard JSP tag libraries:
- JSR 128: JESI – JSP Tag Library for Edge Side Includes (inactive)
- JSR 267: JSP Tag Library for Web Services
See also
References
External links
- JSTL Specification
- JSTL TLDDocs
- JSR 52 (JSTL 1.0, 1.1, and 1.2)
- Jakarta Standard Taglib 1.1, an implementation of JSTL (retired)
- Apache Standard Taglib an implementation of the JSP Standard Tag Library (JSTL) specification
- JSTL 1.0 Referenz (German)
- JSTL 1.2 home page
- Official Tutorial: The Java EE 5 Tutorial, Chapter 7, JavaServer Pages Standard Tag Library[1]
- JSTL 1.1 References
- JSF 2.1 Facelets Tag Library Documentation[2]
- JSTL Functions
- OWASP ESAPI Tags (as JSTL does not offer any tags for website security)
|