JSTL标签

jstl 中的<c:if test="${}">如判断某个list对象是否为空时,就可以通过<c:if test="${empty list名}">来判断,条件判断是使用or==|| ,and==&&

<c:if>没有<c:else>可以用<c:choose>来取代结构:
<c:choose>

<c:when test=""> 如果
</c:when>
<c:otherwise> 否则
</c:otherwise>
</c:choose>

在同一个 <c:choose> 中,当所有 <c:when> 的条件都没有成立时,则执行 <c:otherwise> 的本体内容。

posted @ 2014-04-15 17:28  浅浅重叠  阅读(147)  评论(0)    收藏  举报