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. 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 ==