<c:choose>
<c:when test="${somecondition}">
...
</c:when>
<!-- if not somecondition do otherwise -->
<c:otherwise>
...
</c:otherwise>
</c:choose>
The above code will throw a jspError, "JSTL Illegal text inside "c:choose" tag: "
<c:choose>
<c:when test="${somecondition}">
...
</c:when>
<%-- if not somecondition do otherwise --%>
<c:otherwise>
...
</c:otherwise>
</c:choose>
You can't use < !-- --> comments. Thought I would share since I didn't see this on stackoverflow and ran into it today.
http://youtrack.jetbrains.com/issue/IDEA-44363
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With