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

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

2017-04-10 14:32 681 查看
有些时候,<%@ 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"

主要原因是缺少

jstl.jar 

standard.jar

两个Jar包 地址
http://download.csdn.net/detail/candyo75/8393941
如果还不行,请调整jstl.jar 版本,这个主要根据web的version的版本有关。增加如下

<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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐