<c:if>没有<c:else>可以用<c:choose>来取代结构:
<c:choose>
<c:when test=""> 如果
</c:when>
<c:otherwise> 否则
</c:otherwise>
</c:choose>
在同一个 <c:choose> 中可以有多个<c:when>,当所有 <c:when> 的条件都没有成立时,则执行 <c:otherwise> 的本体内容。
<c:if>没有<c:else>可以用<c:choose>来取代结构:
<c:choose>
<c:when test=""> 如果
</c:when>
<c:otherwise> 否则
</c:otherwise>
</c:choose>
在同一个 <c:choose> 中可以有多个<c:when>,当所有 <c:when> 的条件都没有成立时,则执行 <c:otherwise> 的本体内容。