Reference http://www.bubuko.com/infodetail-1077023.htmlhttp://janedoneway.iteye.com/blog/1245949 never thought it was a problem, However, recently found on the Internet on this aspect of the information is quite chaotic, and now the understanding of their own in order to be consulted.? development teams often use the JSTL tag library, beginning and not caring, Everyone was simply introduced Jstl.jar and Standard.jar, and later found that the two packages also have version differences, the different project teams, defined in the JSP also have differences, but also cause conflict and code incompatibility. So I want to find a new package on the Internet, using one of the most official recommended usage to standardize the development of the team. I thought it was a very simple job, but it also took a bit of Kung Fu. First, for the previous versions and usage of JSTL, please see this article: http://janedoneway.iteye.com/blog/1245949 about version 1.2, there is only one jar package open to look at. In fact, the previous two jar package (Jstl.jar, interface definition package, Standard.jar implementation package) was merged, but the source of this package is not known, who is suspected of who to use the package they made. The latest version of the JSTL standard and interface definition should be version 1.2, which was introduced in 2011. I'd like to focus on the latest progress on JSTL implementation. Before 2009, Jakarta The TAGLIB project team provided the implementation jar packages for each version of Jstl (that is, the common Jstl.jar and Standard.jar), after which the Taglib project was transferred to the Tomcat group, as shown below in starting, Jakarta Hosted the Jakarta Taglibs Project, a large collection of JSP Tag Libraries. They ranged from simple utility libraries and UI libraries, to Dreamweaver extensions and an implementation of the JSP Sta Ndard Tag Library (JSTL) specification.
With the advent of JSTL, the core features of many of the libraries had been standardized and the need for these libraries Diminished. As such, much of the Taglibs codebase moved into maintenance mode. In and out, the majority of these libraries were deprecated and has now been retired. The remaining work have moved over to the? Tomcat taglibs?project-namely The following taglibs:-standard-the implementations of the various JSTL specifications- Rdc-reusable Dialog Components Taglibin The RDC Taglib is retired from the Tomcat Taglibs project. From 2000 onwards, Jakarta developed and managed the Jakarta Tag Library project, a large collection of JSP tag libraries. The project includes a simple application library to the UI library, as well as a Dreamweaver extension and implementation of the JSP standard tag library definition (JSTL). With the advent of Jstl, many of the library features included in this project have been standardized, and the requirements for these libraries are decreasing. Accordingly, the underlying code for many tag libraries has shifted to a maintenance state (no longer updated). The main parts of these libraries were deprecated in 2008-2009, and have now been scrapped. The rest of the work was moved to the Tomcat Taglibs project----The following tag libraries: standards-implementations of various JSTL definitions.?------------------------------------------------------- ------------------------------------------then go to Tomcat's Taglib project page: http://tomcat.apache.org/taglibs/
| 2015/02/20 |
[Standard]? The Apache standard Taglib 1.2.3, a minor bugfix version, has been released. |
| 2014/01/02 |
[Standard]? The Apache standard Taglib 1.2.1, a implementation of JSTL 1.2, has been released. |
| 2009/06/07 |
[All]? The standard and RDC Taglibs has moved over to Tomcat. All of the taglibs back at Jakarta has been deprecated. |
The guy, who took over the project in 2009, only updated it by 2014, and the latest version is February 2015. You can see that the latest version is Standard1.2.3, and the implementation of the JSTL version is JSTL1.2. The system requirements are servlet 2.5, JavaServer Pages 2.1.? Download to download page is the latest 1.2. Version 5
Taglibs-standard-spec-1.2.5.jar (equivalent to the previous Jstl.jar, which belongs to the interface definition Class)And
Taglibs-standard-impl-1.2.5.jar jar (equivalent to the previous Standard.jar, which belongs to the implementation class)? But looking at the C.tld file, the callout version number is <DESCRIPTION>JSTL 1.2 core LIBRARY</DESCRIPTION><DISPLAY-NAME>JSTL Core </display-name><tlib-version>1.2</tlib-version> that is, the version of the interface specification is 1.2,1.2.5 just the implementation of the version.
Another implementation of JSTL is provided by GlassFish on Oracle's Web site, and the latest version is also 1.2, and the date is 2011 version. ----------------------------------------------------------
On the use of methods, on the latest version of the page has a readme, the basic problem is clear:The LIBRARY? DEPENDENCIES? This?version?of?the? Standard? Tag? Library?has?the?following?runtimedependencies:?? ? 1.? Dependencies?provided?by?a? Jsp?2.1?container:??? -? Java?1.5?or?later??? -? Servlet?2.5?or?later??? -? Jsp?2.1?or?later?? ? 2.? Additional?dependencies??? -? The? Xml?tag?library?requires? Apache? Xalan?2.7.1?or?later?---Apache? xalan?2.7.1? To?address?performance?issues?with? Xslt?processing,?this?version?relies?onimplementation?specific?functionality?from? Apache? Xalan.? The?followinglibraries?should?be?included?in?the?classpath?for?your?application:?-? Xalan-2.7.1.jar??-? Serializer-2.7.1.jar?---------------------------------------------------------------------------ADD? DEPENDENCIES? To? A? Web? Application? To?use?this?distribution?with?your?own?web?applications,?add?the?following? Jarfiles?to?the? ' /web-inf/lib '? Directory?of?your?application:?-? Taglibs-standard-spec-1.2.5.jar??-? Taglibs-standard-impl-1.2.5.jar?-? taglibs-standard-jstlel-1.2.5.jar??-? xalan-2.7.1.jar?-? serializer-2.7.1.jar? If?you?do?not?use? Jstl?1.0?tags?then?the? " Taglibs-standard-jstlel "? jar?may?beomitted.? If?you?do?not?use?the? Xml?library,?then?the? Apache? xalan?dependenciesmay?also?be?omitted.? If?you?build?you?application?with? Maven,?add?the?following?dependencies?toyour?pom.xml?file:?? ? <dependency>??? <groupid>org.apache.taglibs</groupid>??? <artifactid>taglibs-standard-spec</artifactid>??? <version>1.2.5</version>?? </dependency>?? <dependency>??? <groupid>org.apache.taglibs</groupid>??? <artifactid>taglibs-standard-impl</artifactid>??? <version>1.2.5</version>?? </dependency>?---------------------------------------------------------------------------USING? Jstl? TAGS? From? A? Jsp? The? Jstl?tag?library?can?be?imported?into?your?pages?with?the?following?directives:?? The CORE? The LIBRARY?? <%@?taglib?prefix= "C"? uri= "Http://java.sun.com/jsp/jstl/core"?%>?? Xml? The LIBRARY?? <%@?taglib?prefix= "x"? uri= "Http://java.sun.com/jsp/jstl/xml"?%>?? Fmt? The LIBRARY?? <%@?taglib?prefix= "FMT"? uri= "Http://java.sun.com/jsp/jstl/fmt"?%>?? Sql? The LIBRARY?? <%@?taglib?prefix= "SQL"? uri= "Http://java.sun.com/jsp/jstl/sql"?%>?? FUNCTIONS? LIBRARY
?
? ? <%@?taglib?prefix= "FN"? uri= "Http://java.sun.com/jsp/jstl/functions"?%>
< >jstl version of the tag library