JSTL
   HOME

TheInfoList



OR:

The Jakarta Standard Tag Library (JSTL; formerly JavaServer Pages Standard Tag Library) is a component of the
Java EE Jakarta EE, formerly Java Platform, Enterprise Edition (Java EE) and Java 2 Platform, Enterprise Edition (J2EE), is a set of specifications, extending Java SE with specifications for enterprise features such as distributed computing and web serv ...
Web application A web application (or web app) is application software that is created with web technologies and runs via a web browser. Web applications emerged during the late 1990s and allowed for the server to dynamically build a response to the request, ...
development platform. It extends the JSP specification by adding a tag library of JSP tags for common tasks, such as
XML Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing data. It defines a set of rules for encoding electronic document, documents in a format that is both human-readable and Machine-r ...
data processing, conditional execution,
database In computing, a database is an organized collection of data or a type of data store based on the use of a database management system (DBMS), the software that interacts with end users, applications, and the database itself to capture and a ...
access, loops and
internationalization Internationalization or Internationalisation is the process of increasing involvement of enterprises in international markets, although there is no agreed definition of internationalization. Internationalization is a crucial strategy not only for ...
.


Specification

JSTL was developed under the
Java Community Process The Java Community Process (JCP), established in 1998, is a formal mechanism that enables interested parties to develop standard technical specifications for Java technology. Becoming a member of the JCP requires solid knowledge of the Java program ...
(JCP) as
Java Specification Request The Java Community Process (JCP), established in 1998, is a formal mechanism that enables interested parties to develop standard technical specifications for Java technology. Becoming a member of the JCP requires solid knowledge of the Java program ...
(JSR) 52. On May 8, 2006, JSTL 1.2 was released, followed by JSTL 1.2.1 on Dec 7, 2011. 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 Edge Side Includes (ESI) is a small markup language for edge level dynamic web content assembly. The purpose of ESI is to tackle the problem of web infrastructure scaling. It is an application of edge computing. It is fairly common for websites t ...
(inactive)
JSR 267
JSP Tag Library for Web Services


General Responsibilities

JSTL provides an effective way to embed logic within a JSP page without using embedded
Java Java is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea (a part of Pacific Ocean) to the north. With a population of 156.9 million people (including Madura) in mid 2024, proje ...
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 In computer science, separation of concerns (sometimes abbreviated as SoC) is a design principle for separating a computer program into distinct sections. Each section addresses a separate '' concern'', a set of information that affects the code o ...
between the development of the
application Application may refer to: Mathematics and computing * Application software, computer software designed to help the user to perform specific tasks ** Application layer, an abstraction layer that specifies protocols and interface methods used in a ...
code and
user interface In the industrial design field of human–computer interaction, a user interface (UI) is the space where interactions between humans and machines occur. The goal of this interaction is to allow effective operation and control of the machine fro ...
.


Tag Library Descriptor

There are a total of six JSTL Tag Library Descriptors: * Core library. E.g. and * i18n-capable formatting library * Database tag library, contains tags for querying, creating and updating database table. * XML library * functions library * 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. 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

*
Unified Expression Language The Jakarta Expression Language (EL; formerly Expression Language and Unified Expression Language) is a special purpose programming language mostly used in Jakarta EE web applications for embedding and evaluating expressions in web pages. The ...


Citations


References

*


External links

*
JakartaEE JSTL specification

JSTL TLDDocs

JSR 52
(JSTL 1.0, 1.1, and 1.2)

an implementation of JSTL (retired)
Apache Standard Taglib
an implementation of the JSP Standard Tag Library (JSTL) specification


JSTL 1.2 home page


* ttp://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/ JSTL 1.1 References
JSF 2.1 Facelets Tag Library Documentation
re
Java EE Technical Documentation
/ref>

(as JSTL does not offer any tags for website security) {{Jakarta EE Java enterprise platform Java specification requests