解决eclipse中jstl无法使用的问题
问题描述:
The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml
解决的方案有三:
1、查看jsp页面中 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 中的uri版本是否设置正确。
2、看看是不是缺少jstl.jar 或 standard.jar
3、或者在web.xml中手动配置(插入以下代码) c.tld和fn.tld是我用的,如果要用到其他的tld的话就在添加就好了。
JSTL库可以在下面两个网站中下载。
官网: http://archive.apache.org/dist/jakarta/taglibs/standard/binaries/
runoob: http://static.runoob.com/download/jakarta-taglibs-standard-1.1.2.tar.gz
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/lib/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/functions</taglib-uri>
<taglib-location>/WEB-INF/lib/fn.tld</taglib-location>
</taglib>
</jsp-config>

浙公网安备 33010602011771号