添加JSTL 1.2 依赖库

添加JSTL 1.2 依赖库

JSTL 是一项很有历史的技术,而且版本自Java 5以来长期停留在1.2。但在做简单演示的页面时jstl依然有用,当前我们依然能看到这项技术(在博客、文档的demo里很常见),。期间gourpIdjstl变更为javax.servletartifactId都为 jstl,实质的jar包应该是同一个。

如下所示为JSTL 1.2 的Maven 依赖:
这里使用的JSTL实现库为 Apache Standard Taglib

<!-- JSTL API -->
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jstl</artifactId>
      <version>1.2</version>
    </dependency>
    <!-- Apache hosts the Apache Standard Taglib, an implementation of the JSP Standard Tag Library (JSTL) specification. -->
    <dependency>
      <groupId>org.apache.taglibs</groupId>
      <artifactId>taglibs-standard-impl</artifactId>
      <version>1.2.5</version>
    </dependency>
posted @ 2016-11-26 23:00  狐狸什妖  阅读(2346)  评论(0编辑  收藏  举报