JSTL: example <c:choose/> usage 

Joined:
04/09/2007
Posts:
565

October 23, 2009 23:26:44
<c:choose>
    <c:when test="${case == 1}">
        Case one
    </c:when>
    
    <c:when test="${case == 2}">
        Case two
    </c:when>

    <c:otherwise>
        Everything else
    </c:otherwise>
</c:choose>
[ Comment  | Tags ]
 
Easy email testing with http://www.ximailstop.com