jstl動態標籤的使用
<c:url>用於動態生成一個string類型的URL,還可以同<c:redirect>標籤一起使用。
<%@ page contentType="text/html;charset=GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:out value="url標籤使用"></c:out>
<h4>
使用url標籤生成一個動態的url,並把值存入session中.
</h4>
<hr>
<c:url value=http://localhost:8181 var="url" scope="session">
</c:url>
<a href="${url}">Tomcat首頁</a>