maven 项目中使用 jstl标签

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

  <dependency>
    <groupId>javax.servlet</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"%>

posted @ 2015-11-25 17:15  龙昊雪  阅读(6409)  评论(0编辑  收藏  举报