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

猜你喜欢

转载自www.cnblogs.com/yanglaoxie/p/10669893.html
今日推荐