Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Jakarta Standard Tag Library

From Wikipedia, the free encyclopedia
Component of the Jakarta EE Web application development platform
JSTL
Stable release
3.0.0 / May 14, 2022; 3 years ago (2022-05-14)
OSMultiplatform
Filename extensions.jsp .jspf .jsf
Websiteprojects.eclipse.org/projects/ee4j.jstlEdit this at Wikidata

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.

Specification

[edit]

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:

General Responsibilities

[edit]

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.

Tag Library Descriptor

[edit]

There are a total of six JSTL Tag Library Descriptors:

  • Core library. E.g.⟨c:if⟩[2] and⟨c:when⟩[3][4]
  • i18n-capable formatting library[5]
  • Database tag library, contains tags for querying, creating and updating database table.[6]
  • XML library[7]
  • functions library[8]
  • 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

[edit]

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]

See also

[edit]

Citations

[edit]
  1. ^"Maven Central Repository Search".
  2. ^Murach & Urban 2014, pp. 282–283, §2 Essential servlet and JSP skills - How to use the if tag.
  3. ^"JSTL core (TLDDoc Generated Documentation)".
  4. ^Murach & Urban 2014, pp. 284–285, §2 Essential servlet and JSP skills - How to use the choose tag.
  5. ^"JSTL FMT (TLDDoc Generated Documentation)".
  6. ^"JSTL SQL (TLDDoc Generated Documentation)".
  7. ^"JSTL XML (TLDDoc Generated Documentation)".
  8. ^"JSTL functions (TLDDoc Generated Documentation)".
  9. ^"Javax.servlet.JSP.JSTL.TLV (Java EE 6 )".
  10. ^Murach & Urban 2014, pp. 310–311, §2 Essential servlet and JSP skills - The tag element.
  11. ^abcMurach & Urban 2014, pp. 178, §2 Essential servlet and JSP skills - How to enable the core JSTL library.
  12. ^abMurach & Urban 2014, pp. 270–273, §9 How to use JSTL.

References

[edit]

External links

[edit]
Jakarta EE specifications
formerly known as: Java Platform, Enterprise Edition (Java EE) and Java 2 Platform, Enterprise Edition (J2EE)
Web app
Enterprise app
Web services
Other
Removed
Related
  1. ^"JSTL-api". Archived fromthe original on 2011-08-18. Retrieved2011-07-26.
  2. ^Java EE Technical Documentation
Retrieved from "https://en.wikipedia.org/w/index.php?title=Jakarta_Standard_Tag_Library&oldid=1256838729"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp