<c:if> no <c:else> can replace structure with <c:choose>: <c:choose> <c:when test= "" > if </c: when> <c:otherwise> otherwise </c:otherwise> </c:choose> at the same In <c:choose> , when all <c:when> conditions are not established, the main content of <c:otherwise> is executed. Syntax <c:otherwise> main content </c:otherwise> Properties no Restrictions ·<c:otherwise> must be between <c:choose> and </c:choose> ,<c:otherwise> must be the last label when in the same <c:choose> Description in the same <c:choose> , if all <c:when> When the test property is not true, the <c:otherwise> ontology content is executed. Example I give a typical <c:choose>, <c:when> and <c:o therwise> example: <c:choose> <c:when test= "${ Condition1} "> condition1 for true </c:when> <c:when test= "${ condition2}"
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.