<%@ taglib prefix=“c“ uri=“http://java.sun.com/jsp/jstl/core“ %>报错

在使用JSTL标签时,遇到"Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"的错误。该问题通常由于缺少jstl.jar和standard.jar这两个Jar包导致,可以从指定链接下载。若添加后仍报错,可能需要检查并调整jstl.jar的版本。

<%@ taglib prefix=“c” uri=“http://java.sun.com/jsp/jstl/core” %>报错

在用到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”

一般的原始是缺少两个Jar包:jstl.jar和standard.jar(包的下载地址:http://download.csdn.net/detail/candyo75/8393941)

如果还不行,请调整jstl.jar 版本。增加如下

<font size=3><jsp-config> 
        <taglib> 
            <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri> 
            <taglib-location>/WEB-INF/tlds/fmt.tld</taglib-location> 
        </taglib> 
        <taglib> 
            <taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri> 
            <taglib-location>/WEB-INF/tlds/fmt-rt.tld</taglib-location> 
        </taglib> 
        <taglib> 
            <taglib-uri>http://java.sun.com/jstl/core</taglib-uri> 
            <taglib-location>/WEB-INF/tlds/c.tld</taglib-location> 
        </taglib>  
</jsp-config>
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值