首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

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

2012-10-30 
Can not find the tag library descriptor for http://java.sun.com/jsp/jstl/core有些时候,%@ taglib

Can not find the tag library descriptor for "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>




1 楼 向往前途 2011-11-20   请问 一下,如何添加web的version的版本

热点排行