Java Learning (vii) standard TAG library Jstl

Source: Internet
Author: User

First, understand JSTL1, what is Jstl?

  

JSTL (JSP standard tag LIBRARY,JSP standards Tag library) is an ever-improving open source JSP tag library that is maintained by Apache's Jakarta team. Jstl can only be run on containers that support the JSP1.2 and Servlet2.3 specifications, such as Tomcat 4.x. It is also supported as a standard in JSP 2.0.

JSTL 1.0 was released in June 2002 and consists of four custom tag libraries (core, format, XML, and SQL) and a pair of common tag library validators (SCRIPTFREETLV and PERMITTEDTAGLIBSTLV). The core tag library provides custom actions to manage data by limiting the scope of variables, as well as performing iterations and conditional actions on page content. It also provides tags for generating and manipulating URLs. As the name implies, the format tag library defines the operations that are used to format data, especially numbers and dates. It also supports the internationalization of JSP pages using localized resource bundles. The XML library contains tags that manipulate the data represented by XML, and the SQL Library defines the operations that are used to query the relational database.

Ii. Conditions of Use

Jstl's elegant programming experience is known to all, the Java community is thriving today using JSTL has no need to consider many issues, we can easily build a JSTL Web project with the Java integrated development environment such as MyEclipse. Even with MyEclipse's powerful tools to help us quickly develop web projects, there is some knowledge that we have to understand----that is the dependency between Jstl and the servlet version, and the JSP version.

The following is a list of dependencies between the JSTL versions and the JSP and servlet versions.

3. Advantages

1. Provides a consistent interface between application servers, maximizing the porting of Web applications across application servers.

2. Simplifies the development of JSP and Web applications.

3, the introduction of JSTL can make JSP code in <%%> and other code disappears, and then combined with El expression, will be more convenient and beautiful.

4, each set of framework (not learning, such as STRUTS,SPRINGMVC, etc.) have their own tag library, then Jstl can be as public, general, in the various frameworks.

Second, the use of JSTL1, download

Log in to the official website:

http://tomcat.apache.org/taglibs/

2. Create a new JSP page

You will continue to study and update your notes tomorrow.

Java Learning (vii) standard TAG library Jstl

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.