Is there an if-else tag available in JSTL?
Yes, but it's clunky as hell, e.g.
<c:choose> <c:when test="${condition1}"> ... </c:when> <c:when test="${condition2}"> ... </c:when> <c:otherwise> ... </c:otherwise> </c:choose>
548k questions
547k answers
4 comments
86.3k users