码迷,mamicode.com
首页 > 编程语言 > 详细

http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed wit

时间:2014-05-11 21:44:48      阅读:364      评论:0      收藏:0      [点我收藏+]

标签:jstl   tld   jsp   xml   异常   

异常: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
这是因为页面中用了struts标签的原因。
解决方法:
1。下载jstl1.1 解压后把lib文件夹下的jstl.jar和standard.jar复制到项目的WEB—INF/lib目录下,到此结束就行,如果还需要tld等。再做以下操作。(并把tld文件夹下的c.tld放到WEB—INF目录下)
2。在web.xml中加入如下语句
<jsp-config>

   <taglib>

    <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>

    <taglib-location>/WEB-INF/c.tld</taglib-location>

   </taglib>

   <taglib>

    <taglib-uri>http://java.sun.com/jsp/jstl/xml</taglib-uri>

    <taglib-location>/WEB-INF/x.tld</taglib-location>

   </taglib>

   <taglib>

    <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>

    <taglib-location>/WEB-INF/fmt.tld</taglib-location>

   </taglib>

   <taglib>

    <taglib-uri>http://java.sun.com/jsp/jstl/sql</taglib-uri>

    <taglib-location>/WEB-INF/sql.tld</taglib-location>

   </taglib>

</jsp-config>

jstl 下载:http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi

http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed wit,布布扣,bubuko.com

http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed wit

标签:jstl   tld   jsp   xml   异常   

原文地址:http://blog.csdn.net/df1012890048/article/details/25538207

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!