Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
Jakarta Standard Tag Library
Component of the Jakarta EE Web application development platform

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.

We don't have any images related to Jakarta Standard Tag Library yet.
We don't have any YouTube videos related to Jakarta Standard Tag Library yet.
We don't have any PDF documents related to Jakarta Standard Tag Library yet.
We don't have any Books related to Jakarta Standard Tag Library yet.
We don't have any archived web articles related to Jakarta Standard Tag Library yet.

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:

  • Core library. E.g. ⟨c:if⟩2 and ⟨c:when⟩34
  • i18n-capable formatting library5
  • Database tag library, contains tags for querying, creating and updating database table.6
  • XML library7
  • functions library8
  • 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.9

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

Core Library

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

See also

Citations

  • Murach, Joel; Urban, Michael (2014). Murach's Java Servlets and JSP. ISBN 978-1-890774-78-3.

References

  1. "Maven Central Repository Search". http://search.maven.org/#browse%7C707331597

  2. Murach & Urban 2014, pp. 282–283, §2 Essential servlet and JSP skills - How to use the if tag. - Murach, Joel; Urban, Michael (2014). Murach's Java Servlets and JSP. ISBN 978-1-890774-78-3.

  3. "JSTL core (TLDDoc Generated Documentation)". http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/c/tld-summary.html

  4. Murach & Urban 2014, pp. 284–285, §2 Essential servlet and JSP skills - How to use the choose tag. - Murach, Joel; Urban, Michael (2014). Murach's Java Servlets and JSP. ISBN 978-1-890774-78-3.

  5. "JSTL FMT (TLDDoc Generated Documentation)". http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/fmt/tld-summary.html

  6. "JSTL SQL (TLDDoc Generated Documentation)". http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/sql/tld-summary.html

  7. "JSTL XML (TLDDoc Generated Documentation)". http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/x/tld-summary.html

  8. "JSTL functions (TLDDoc Generated Documentation)". http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/fn/tld-summary.html

  9. "Javax.servlet.JSP.JSTL.TLV (Java EE 6 )". http://docs.oracle.com/javaee/6/api/javax/servlet/jsp/jstl/tlv/package-summary.html

  10. Murach & Urban 2014, pp. 310–311, §2 Essential servlet and JSP skills - The tag element. - Murach, Joel; Urban, Michael (2014). Murach's Java Servlets and JSP. ISBN 978-1-890774-78-3.

  11. Murach & Urban 2014, pp. 178, §2 Essential servlet and JSP skills - How to enable the core JSTL library. - Murach, Joel; Urban, Michael (2014). Murach's Java Servlets and JSP. ISBN 978-1-890774-78-3.

  12. Murach & Urban 2014, pp. 270–273, §9 How to use JSTL. - Murach, Joel; Urban, Michael (2014). Murach's Java Servlets and JSP. ISBN 978-1-890774-78-3.

  13. Murach & Urban 2014, pp. 270–273, §9 How to use JSTL. - Murach, Joel; Urban, Michael (2014). Murach's Java Servlets and JSP. ISBN 978-1-890774-78-3.

  14. Murach & Urban 2014, pp. 178, §2 Essential servlet and JSP skills - How to enable the core JSTL library. - Murach, Joel; Urban, Michael (2014). Murach's Java Servlets and JSP. ISBN 978-1-890774-78-3.

  15. Murach & Urban 2014, pp. 178, §2 Essential servlet and JSP skills - How to enable the core JSTL library. - Murach, Joel; Urban, Michael (2014). Murach's Java Servlets and JSP. ISBN 978-1-890774-78-3.

  16. "JSTL-api". Archived from the original on 2011-08-18. Retrieved 2011-07-26. https://web.archive.org/web/20110818232704/http://jstl.java.net/getStarted.html

  17. Java EE Technical Documentation http://docs.oracle.com/javaee/