添加JSTL 1.2 依賴庫
JSTL 是一項很有歷史的技術,而且版本自Java 5以來長期停留在1.2。但在做簡單演示的頁面時jstl依然有用,當前我們依然能看到這項技術(在博客、文檔的demo里很常見),。期間gourpId 由jstl變更為javax.servlet,artifactId都為 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>
