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

本文提供了解决JSTL1.1引入及使用时遇到的错误的详细步骤,包括下载JSTL1.1版本、解压、放置相关jar包以及导入配置,最终成功在JSP文件中使用JSTL标签。

<%@ 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的错误

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值