Archived: Installing JSTL 1.0 Apache Implementation

This section provides a tutorial example on how to download and install Apache Standard Taglib 1.0.4, which is an open-source implementation of the JSTL 1.0. Only 2 JAR files are needed: standard.jar and jstl.jar.

Standard Taglib 1.0.4 is Jakara Taglibs's open-source implementation of the JSP Standard Tag Library (JSTL) 1.0. I did the following to download the latest release of Standard Taglib 1.0.4:

To test JSTL 1.0 Apache implementation, let's try a very simple example, using JSTL to display "Hello world!". Here is my JSP source code, hello_jstl.jsp:

<%@ taglib uri="" prefix="c" %>
<c:out value="Hello world!"/>

Save it to \local\jakarta-tomcat-4.1.18\webapps\ROOT, and run IE with url: http://localhost:8080/hello_jstl.jsp. Guess what? You will receive crashing page with an error message like: "javax.servlet.ServletException: Cannot inherit from final class".

So what happened? I really don't know. My guess is that some of the JAR files from Taglib 1.0.4 are not compatible with Tomcat 4.1.18. To approve this, I removed all Taglib jar files, except standard.jar and jstl.jar, from \local\jakarta-tomcat-4.1.18\webapps\ROOT\WEB-INF\lib. I restarted Tomcat and ran IE again with url: http://localhost:8080/hello_jstl.jsp. I got the prefect message "Hello world!" in the IE window!

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)

 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

 Archived: Installing GlassFish JSTL 1.2 on Tomcat

 Archived: Downloading and Installing Tomcat 7

 Archived: Installing Tomcat 5.5.7

 Archived: Installing Tomcat 4.1.18

 Archived: Java Class Converted by Tomcat 4.1.18

 Archived: Hijacking Servlet Converted from JSP

 Archived: Using Perl LWP::Debug Module to Debug

Archived: Installing JSTL 1.0 Apache Implementation

 Archived: Upgrade JDK 1.3 to JDK 1.4 on Tomcat 4.1

 Archived: Compilation Errors with JDK 1.4

 Archived: Using JavaBean without Import Element Error


 Full Version in PDF/EPUB