您的位置:首页 > 理论基础 > 计算机网络

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

2012-03-17 20:05 751 查看
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>报错,错误提示为:Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"

解决办法:

下载JSTL1.1 http://jakarta.apache.org/taglibs/index.html

选择下载:jakarta-taglibs-standard-1.1.2.zip

然后解压,把jakarta-taglibs-standard-1.1.2\lib里的jstl.jar 、standard.jar放到/WEB-INF/lib目录下。再build path下导入项目。JSP文件中导入<%@ taglib prefix="c" uri="/WEB-INF/lib/c.tld" %>就可以使用了。

注意:若JSTL版本不对,会报出This absolute uri http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application的错误
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐