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

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就可以解决问题了!

 

posted on 2016-04-03 09:40  野区杰西  阅读(651)  评论(0编辑  收藏  举报

导航