Hi using
eclipse juno, dynamic web project
apache Tomcat v7.0 (which has its own jstl-1.2.1.jar)
I get this error
javax.servlet.ServletExc
javax.servlet.jsp.jstl-1.2.1.jar
doesn't contain the javax.servlet.jsp.jstl.core
classes. Be sure to add jstl-1.2.jar as well.
If you are using maven, add
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.1.2</version>
</dependency>
to your pom.xml
If you want to use forEach you should add two libraries to WEB-INF/lib of your project: Impl: taglibs-standard-impl-1.2.5.jar Spec: taglibs-standard-spec-1.2.5.jar
I had a similar problem, using conditional tag <c:if>. I was only using taglibs-standard-impl-1.2.5.jar.
After downloading the jstl.jar from jstl.jar download page and adding it to Tomcat's installation lib directory it works.
I imported "taglibs-standard-impl-1.2.5.jar" I downloaded from http://tomcat.apache.org/download-taglibs.cgi and I encountered the same error. I tried importing "jstl-1.2.jar" as Limited Atonement suggested before and it worked. So I compared those two jars:
So I tried swch's suggestion. I removed jstl-1.2.jar and importing both "taglibs-standard-spec-1.2.5.jar" and "taglibs-standard-impl-1.2.5.jar".
This solved the issue, because the "spec" lib contains the "javax" folder which contains the required classes.