Installing GlassFish JSTL on Tomcat

This section provides a tutorial example on how to download JSTL 1.2 JAR file developed by the Oracle GalssFish project and install it in the default application on a Tomcat 7 server.

In 2012, I was able to download the JSTL 1.2 implementation 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 JAR files is use the Java EE (Enterprise Edition) SDK package, which should include the JSTL 1.2 implementation.

1. Go to https://www.oracle.com/technetwork/java/javaee/downloads.

2. Click "Java EE 8 Platform SDK" to download java_ee_sdk-8.zip.

3. Unzip the downloaded file to the \local\glassfish5 directory.

4. To install the JSTL JAR file to the default application on my Tomcat server, I need to create a "lib" directory under ".\ROOT\WEB-INF\" and copy the JSTL JAR file there:

herong> mkdir \local\tomcat\webapps\ROOT\WEB-INF\lib

herong> copy                                                    \
   \local\glassfish5\glassfish\modules\javax.servlet.jsp.jstl.jar \
   \local\tomcat\webapps\ROOT\WEB-INF\lib

5. Restart Tomcat. I think I am ready to use JSTL 1.2 in my Tomcat default application. See next tutorial for the first JSTL test page.

Table of Contents

 About This Book

 JSP (JavaServer Pages) Overview

 Tomcat 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 on Tomcat

 "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

 Using Tomcat on CentOS Systems

 Using Tomcat on macOS Systems

 Connecting to SQL Server from Servlet

 Developing Web Applications with Servlet

 Archived Tutorials

 References

 Full Version in PDF/EPUB