會報錯" 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-2026 CODEPRJ.COM