关于jstl的问题:The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml o

Posted 思想空间

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于jstl的问题:The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml o相关的知识,希望对你有一定的参考价值。

Current sofeware:java Eclipse ee 4.5.2 + Tomcat 6.0

Question

    在tomcat中部署好了我的项目,然后发布后没有报错。但是当在浏览器打开的时候,便会出现这样的报错:

java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the”错误 

   

 

Solution:

    这个问题其实是工具发布的问题。在eclipse项目的Persisted container是存在jstl的jar包的,而且在tomcat的webapps/项目名/WEB-INF的jstl也是存在的,但是在eclipse的WebRoot/lib包并没有这个标签,所以jsp页面无法编译,导致出错。只要把jstl.jar从tomcat中复制粘贴一次去eclipse下的lib就可以解决问题了!

 

以上是关于关于jstl的问题:The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml o的主要内容,如果未能解决你的问题,请参考以下文章

异常 The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved

maven使用jstl表达式和The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.

The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar

org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be res

java cannot find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"

Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/