The if tag allows the conditional execution of its body according to the value of the test attribute
<c:if test=”${not empty details.add}”>
It is Not a Empty ArrayList
</c:if>
It is Not a Empty ArrayList
</c:if>
<c:if test=”${empty details.add}”>
It is a Empty ArrayList
</c:if>
The choose tag performs conditional block execution by the embedded when subtags. It renders the body of the first when tag whose test condition evaluates to true. If none of the test conditions of nested when tags evaluates to true, then the body of an otherwise tag is evaluated, if present.
<c:choose>
<c:when test=”${bank.account== ‘saving’}”>
Saving Account
</c:when>
<c:when test=”${bank.account == ‘RD’}”>
RD Account
</c:when>
<c:when test=”${bank.account == ‘salary’}”>
Salary Account
</c:when>
<c:otherwise>
…
</c:otherwise>
</c:choose>
<c:when test=”${bank.account== ‘saving’}”>
Saving Account
</c:when>
<c:when test=”${bank.account == ‘RD’}”>
RD Account
</c:when>
<c:when test=”${bank.account == ‘salary’}”>
Salary Account
</c:when>
<c:otherwise>
…
</c:otherwise>
</c:choose>
Popularity: 3% [?]
Related posts:

November 14th, 2008
admin
Posted in 
