Transaction API

choose

choose tag

Makes a choice from among nested <when> tags. This tag can only have one or more <when> and zero or one <otherwise> tags as children. Supported in documents.

Tag Attributes
Attribute Notes

Sample:

<c:choose>
    <c:when test="${name eq 'cc'}">
        <c:fragment name="ccard"/>
    </c:when>
    <c:when test="${name eq 'ach'}">
        <c:fragment name="ach"/>
    </c:when>
    <c:otherwise>
        <c:fragment name="unknown"/>
    </c:otherwise>
</c:choose>
Copyright © 2006 - 2025, ContractPal, Inc. All rights reserved. API Date: May 13, 2025 07:00 AM