jsp頁面導入核心庫<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
1.常用標籤
<c:set></c:set> -- 保存數據 數據默認保存在page域中
<c:set var="name" value="jack" scope=""page"></c:set> 用EL表達式取值: ${pageScope.name}
${name }
<c:out value=""></c:out> 獲取數據
<c:if test=""></c:if> 單條件判斷
<c:choose></c:choose> 多條件判斷
<c:when test=""></c:when>
<c:otherwise></c:otherwise>
<c:forEach></forEach> 循環數據
<c:forTokens items="" delims=""></c:forToekns>
<c:redirect></c:redirect>
▄█▀█●各位老鐵,如果我的代碼能夠幫助到你,請給我一個贊吧!