Friday 24 May 2013

jstl if/else set forEach if

Leave a Comment
<c:choose>
    <c:when test="${role eq 2}">
       <c:forEach items="${authorityList}" var="value">
         <c:if test="${value == 2}">
            <c:set var="found" value="true"/>
         </c:if>
       </c:forEach>
       <c:if test="${found == 'true'}">
     
       </c:if>
     
    </c:when>
    <c:otherwise>
       
    </c:otherwise>
</c:choose>

0 comments:

Post a Comment