Tomcat 5.5 and JSTL
Hello Everyone ..
i have recently began experimenting with the newest versions of Tomcat and Java and am running into problems.
From what i understand here are the steps to get JSTL running on Tomcat..
Just copy JSTL.jar and standard.jar into your WEB-INF/lib directory and reference it in your code like such..
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" />
now the following code snipet works fine it does everything its supposed to do.
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" />
<c:set var="myVal" value="the value inside of myVal"/>
Here is the value printed out: ${myVal}
but this code .. throws an error
<c:forEach var="item" begin="1" end="10">
${item}
</c:forEach>
the Excpetion thrown is ..
javax.servlet.ServletException: javax/servlet/jsp/tagext/Tag
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
the Top of the stack reads like..
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/Tag
I also try this and get the same error..
<c:if test="1==1">
I am true
</c:if>
So i believe i missed some important step with the install for JSTL .. does anyone know what im missing?
some notes about my setup
--------------------------
I have received the same errors on Tomcat version 5.5.7 and 5.5.8.. currently right now i am running 5.5.7
I am using the JSTL that came with the product
My Java version is the newest version of J2SE 5
JSTL.jar and standard.jar are NOT in the tomcat_root/common/lib directory
my classpath is pretty basic.. i dont think anything regarding this issue needs to be in it..currently it is set to
".;%mysql_home%\lib\mysql-connector-java-3.1.7-bin.jar;"
Any help with this issue would be very appreciative
thanks,
Dave