使用JSTL的c:forEach标签JSP报如下错误:
java.lang.NoSuchFieldError: deferredExpression
at org.apache.taglibs.standard.tag.common.core.ForEachSupport.release(ForEachSupport.java:178)
at org.apache.jasper.runtime.TagHandlerPool.release(TagHandlerPool.java:166)
at org.apache.jsp.index_jsp._jspDestroy(index_jsp.java:32)
at org.apache.jasper.runtime.HttpJspBase.destroy(HttpJspBase.java:61)
at org.apache.jasper.servlet.JspServletWrapper.destroy(JspServletWrapper.java:439)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:340)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
原因是项目中有多个jstl.jar,删除一个即可
如果还报错,删除work文件,clean重新编译
作者:itmyhome
时间: 2024-10-11 16:29:58