c:choose

<c:choose>
  <!-- Content: (c:when+, c:otherwise?) -->
</c:choose>

Chooses between multiple alternatives.

Category
instruction
Permitted parent elements
Any XCST element whose content model is sequence-constructor
Any literal result element
Example
<c:choose>
   <c:when test='IsPost'>
      <p>This page was posted using the Submit button.</p>
   </c:when>
   <c:otherwise>
      <p>This was the first request for this page.</p>
   </c:otherwise>
</c:choose>

See Also