JSP Tutorials - Herong's Tutorial Examples - Version 5.00, by Dr. Herong Yang
Installing JSTL 1.2 API JAR File
This section provides a tutorial example on how to install JSTL 1.2 API JAR file on Tomcat server to support JSTL loop and other tags.
As you can from the previous section, installing just GlassFish JSTL 1.2 implementation JAR file on the Tomcat server is not enough to support all JSTL tags. The JSTL 1.2 API JAR file must also be installed.
In 2012, I was able to download the JSTL 1.2 API JAR by the Oracle GlassFish project at http://jstl.java.net/. But now that Website is replaced by https://javaee.github.io/jstl-api/. The new site allows you to use github tools to download and build the JAR files.
Another way to obtain the JSTL 1.2 API JAR files is use the Java EE (Enterprise Edition) SDK package, which should include the JSTL 1.2 the API JAR.
1. Down load java_ee_sdk-8.zip and unzip it to the \local\glassfish5 directory, as described in the previous tutorial.
2. Copy the the JSTL 1.2 API JAR files to my Tomcat server:
C:\herong>copy \ \local\glassfish5\glassfish\modules\javax.servlet.jsp.jstl-api.jar \ \local\tomcat\webapps\ROOT\WEB-INF\lib
3. Restart Tomcat. All JSTL 1.2 tags should work on my Tomcat default application now. See next section to return to JSTL loop tag example.
Last update: 2012.
Table of Contents