在页面上用JSTL来做标签库进行解析,方法是:
一、在JSP页面上引入<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
二、在pom.xml中引入JAR包:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
或到https://m2proxy.atlassian.com/repository/public相应路径下,下载对应版本jar包,引入工程即可。