JSP添加JSTL标签库

    xiaoxiao2022-06-29  38

    在POM中添加

    <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> <scope>provided</scope> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId> <version>1.1.2</version> <type>jar</type> <scope>provided</scope> </dependency> 然后在jsp中加入 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    转载请注明原文地址: https://ju.6miu.com/read-1124825.html

    最新回复(0)