1、问题:
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
2、问题描述:
使用了maven管理,在pom.xml中加入如下Jar:
用maven编译启动服务器后,访问添加了如下标签的页面:
<%@ taglib uri=“http://java.sun.com/jsp/jstl/core” prefix=“c” %>
发现访问页面提示如下错误:
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
3、解决方法:
可能是JAR文件的版本问题,关于使用Maven的pom.xml文件的方式还没有具体的方法。可以先手动添加JAR文件。从当前使用的Tomcat的解压路径中复制%TOMCAT_HOME%/webapps/examples/WEB-INF/lib 目录中目录中的jstl.jar 和 standard.jar两个Jar包到项目的WEB-INF的lib目录下,重新用maven编译,启动服务器,问题解决。