添加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>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM