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 7 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 7 server is not enough to support all JSTL tags. The JSTL 1.2 API JAR file must also be installed.

1. Go to http://jstl.java.net/ and click the "Download JSTL" icon.

2. Click the "JSTL API" link. The Maven Central Repository page shows up.

3. Click "javax.servlet.jsp.jstl-api-1.2.1.jar" to download the JAR file.

4. To install the API JAR file to the default application on my Tomcat 7 server, I need to copy the JAR file to the .\WEB-INF\lib directory:

C:\>copy javax.servlet.jsp.jstl-api-1.2.1.jar
   \local\apache-tomcat-7.0.32\webapps\ROOT\WEB-INF\lib
        1 file(s) copied.

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

 About This Book

 JSP (JavaServer Pages) Overview

 Tomcat 7 Installation on Windows Systems

 JSP Scripting Elements

 Java Servlet Introduction

 JSP Implicit Objects

 Syntax of JSP Pages and JSP Documents

 JSP Application Session

 Managing Cookies in JSP Pages

 JavaBean Objects and "useBean" Action Elements

 Managing HTTP Response Header Lines

 Non-ASCII Characters Support in JSP Pages

 Performance of JSP Pages

 EL (Expression Language)

Overview of JSTL (JSP Standard Tag Libraries)

 What is JSTL?

 Installing GlassFish JSTL 1.2 on Tomcat 7

 "Hello world!" with JSTL

 JSTL in XML Style JSP Pages

 General Syntax of JSTL Tags

 NoClassDefFoundError - LoopTag/ForEachTag

Installing JSTL 1.2 API JAR File

 JSTL Example - Loop Tag on Map Objects

 JSTL Core Library

 JSP Custom Tags

 JSP Java Tag Interface

 Custom Tag Attributes

 Multiple Tags Working Together

 File Upload Test Application

 Outdated Tutorials

 References

 PDF Printing Version