Help the world stop coronavirus! Stay home!

Prev Next

JSP / JSP interview questions

if-else option in JSTL.

<c:if> tag does not have else tag. So we can use <c:choose> as illustrated below for if-else if- else scenario.

<c:choose>
  <c:when test="${condition1}">
    ...
  </c:when>
  <c:when test="${condition2}">
    ...
  </c:when>
  <c:otherwise>
    ...
  </c:otherwise>
</c:choose>

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...

#

Comments & Discussions