JSTL error javax/servlet/jsp/jstl/core/LoopTag error when using c:forEach tomcat ver7.0

前端 未结 5 1073
感动是毒
感动是毒 2021-01-18 04:52

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         


        
5条回答
  •  长情又很酷
    2021-01-18 05:32

    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:

    • "jstl-1.2.jar" contains 3 folders: "javax", "META-INF" and "org".
    • "taglibs-standard-impl-1.2.5.jar" contains only 2 folders: "META-INF" and "org".

    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.

提交回复
热议问题