I am using RAD 6.0, where I have put jstl.jar under the lib folder in my application. When I am using the JSTL tags, it does not give any copilation errors. But when I am trying to run the application, the core tags are not working.
RAD 6 / WAS 6 is Servlet 2.4 targeted. Thus:
Ensure that you've included both
jstl.jar
andstandard.jar
of JSTL 1.1 in webapp's classpath (the/WEB-INF/lib
folder).Ensure that you're declaring taglibs in top of JSP files as per JSTL 1.1 tlddoc (click any of libs to see them). E.g.
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
Especially note presence of
/jsp
in path and also the absence of the_rt
prefix in name.Ensure you've declared
web.xml
as per Servlet 2.4 spec (and thus not as Servlet 2.3 or older).<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
You should add the jstl.jar to the Java Build Path in the Project Properties of the particular project.
Be aware that Java Build Path and MANIFEST.MF (for runtime Classpath) can get out-of-sync at some point. Therefore it is better to use Rational Application Developer 7.0 or 7.5 which also support WebSphere Application Server 6.0.
Also, Rational Application Developer 6.0 is out-of-support already: http://www-111.ibm.com/software/support/lifecycle/PLCDetail.wss?brand=rational&synkey=W170532D29019M02-L603472G19375Q17-M054243E02973V75&synkey=W170532D29019M02-L603472G19375Q17-R377236X92964B60&synkey=W170532D29019M02-T872435L09150T44-O941388U48112Q95&ibm-view=View+details
The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM