场景:JSP
Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/ c
解决:<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>需要依赖包;按照查到的资料,JSTL taglib需要jstl.jar来支持。
在1.0和1.1版本的时候,还需要standard.jar来配合。但从1.2版本开始,jar文件名字变成了jstl-1.2.jar,也不再需要standard.jar了。

本文介绍了解决JSP中出现的Unknowntag(c:forEach)错误的方法,需要正确配置<%@taglibprefix="c"uri="http://java.sun.com/jsp/jstl/core"%>并确保项目中有jstl.jar依赖。从JSTL 1.2版本开始,不再需要standard.jar。

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



