maven导入jstl包与standard包:
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
添加在jsp处
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core"
在page标签中添加 isELIgnored="false"
加入前有输出加入后报错500,web.xml版本号不兼容
加入的包更改为:
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
最好检查一下源码,源码错误也报错