jstl的引入

来源:互联网 发布:怎么清空淘宝登录名 编辑:程序博客网 时间:2024/05/16 11:50

在页面上用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包,引入工程即可。

0 0