The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
Your taglib URI is wrong.
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
This URI is from the old and EOL'ed JSTL 1.0 library. Since JSTL 1.1, you need an extra /jsp in the path because the taglib's internal workings were changed because the EL part was moved from JSTL to JSP:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
Further, the JAR files which you attempted to drop in /WEB-INF/lib are wrong. Thejavax.servlet.jsp.jstl-api-1.2.1-javadoc.jar is contains only the JSTL javadocs and thejavaee.jar contains the entire Java EE API which may be desastreus because Tomcat ships with parts of it already (JSP/Servlet) which may conflict.
Remove them all. You need the jstl-1.2.jar file.
本文解决了JSTL 1.0向1.1升级过程中出现的绝对URI无法解析的问题,详细介绍了正确的URI配置方法,并指出了部署时常见的JAR文件误用问题。

被折叠的 条评论
为什么被折叠?



