jstl标签 URL智能寻找路径
<%-- Created by IntelliJ IDEA. User: Administrator Date: 2019/6/24 Time: 10:43 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%--进行list循环时需要用到的--%> <html> <head> <title>Title</title> </head> <style> #mininameText{ color: #42ff36; } </style> <%--添加jquery代码实现--%> <script src="js/jquery-2.1.0.js"></script> <body> <h1 id="mininameText">欢迎你,可爱的${player.mininame}</h1> <a href="<c:url value="loginSuccess.jsp" />">mamage</a> </body> </html>
首先导入taglib应用式:
接着便尽请使用了