---
title: "jslt 标签函数，和选择标签的简单使用"
author: "qsrock"
date: "2008-09-11T19:01:08Z"
tags: ["C", "JSP", "Java", "SUN", "performance"]
slug: "jslt"
draft: false
lastmod: "2008-09-11T19:01:08Z"
id: 240790
url: "https://qsrock.iteye.com/blog/240790"
---

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

```