How do I do "nested if" in JSTL for Java JSP?

Posted by user678616 on Stack Overflow See other posts from Stack Overflow or by user678616
Published on 2011-03-27T04:11:10Z Indexed on 2012/06/26 3:16 UTC
Read the original article Hit count: 85

Filed under:
|
|

I want to do something like the following:

<c:choose>
    <c:when test="${empty example1}">
    </c:when>
    <c:otherwise>
        <c:when test="${empty example2}">
        </c:when>
        <c:otherwise>
        </c:otherwise>              
    </c:otherwise>
</c:choose>

Is this even possible? I get an exception thrown when trying to run.

Thank you.

© Stack Overflow or respective owner

Related posts about java

Related posts about jsp