ITeye博客

jslt 标签函数,和选择标签的简单使用

qsrock · 2008-09-11 19:01 · jsp · C · Java · performance · JSP · SUN · Markdown

<%@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>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。