jslt 標籤函數,和選擇標籤的簡單使用

<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>     
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!--term其他地方傳過來的值-->
<c:set var="term" value="${fn:toLowerCase(param.term)}"/>
<c:choose>
<c:when test="${term=='cambrelle'}">
A non-woven synthetic fabric used primarily as a lining for shoes, boots and slippers.
</c:when>
<c:when test="${term=='cordura'}">
A certified fabric from INVISTA used in a wide range of products from luggage and backpacks to boots, to military wear and performance apparel. Cordura?is resistant to abrasions, tears and scuffs.
</c:when>
<c:otherwise>
Unknown term.
</c:otherwise>
</c:choose>

<c:if test="${asset.statusName=='待用'}">
</c:if>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章