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

1790

被折叠的 条评论
为什么被折叠?



