HTTP Status 500 - The absolute uri: http://java.sun.com/jsp/jstl/core cannot-报错解决方法

操作:jsp文件里面添加<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"   %>之后如下图

报错:浏览器上访问时出现下面的错误

HTTP Status 500 - 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

解决:在项目中的WEB-INFO文件夹里创建一个lib目录并在向lib目录里面导入这两个jar包,

     然后再将这两个jar包复制到tomcat里面的lib目录下。例如:D:\tomcat-7.0.53\lib,

     重启服务器再次访问即可成功。

猜你喜欢

转载自www.cnblogs.com/chuijingjing/p/9703837.html