会报错" type="hidden"/>

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


有些时候,<%@ 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包 

如果还不行,请调整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>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM