出现这种错误有两种形式
1,Eclipse 出错提示 Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
2,<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>红色处报错
错误信息为:Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
解决办法是:下载资源jstl.jar包放入项目的lib下即可。
原因:JSTL taglib需要jstl.jar来支持,低版本的jstl.jar需要其他的jar包配合使用,容易出错
也可以maven下解决方法:把jstl.jar版本换成1.2即可。
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>