maven中使用jstl

在pom.xml文件下面增加如下的依赖包:

<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>

 

在用到jstl的页面上增加下面一段话。

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

原文地址:https://www.cnblogs.com/mafangfang/p/5848876.html