JSTL部分示例代碼

[code]
<c:out value=”${pageScope.username}”/>
<c:out value=”${param.username}”/>

<input type=”checkbox” name=”language” value=”english”>
<input type=”checkbox” name=”language” value=”chinese”>

<c:out value=”${paramValues.language[0]}”/>
<c:out value=”${user.name}”/>
<c:out value=”${header[“User-Agent”]}”/>
<c:out value=”${pageContext.request.authType}”/>

<c:set var=”four” value=”${1+3}”/>
<c:remove var=”four” scope=”session”/>

<c:if test=”${user.education==”dectorate”}”>
Hi
</c:if>

<c:choose>
<c:when test=”${error1}”>
Error1
</c:when>
<c:when test=”${error2}”>
Error2
</c:when>
<c:otherwise>
Other Error
</c:otherwise>
</c:choose>

<c:forEach items=”${user.medicalConditions}” var =”a”>
<c:out value=”${a}”/>
</c:forEach>[/code]
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章