jstl choose
<c:set var="num1" value="9"/>
<c:set var="num2" value="2"/>
<c:choose>
<c:when test="${num1 == 2}"> 2
</c:when>
<c:when test="${num1 eq 9}"> 9
</c:when>
<c:otherwise> <c:out value="${num1}"/> </c:otherwise>
</c:choose>
<br />
<br />
<br />
<c:set var="num1" value="11"/>
<c:choose>
<c:when test="${num1 == 2}"> num1 2
</c:when>
<c:when test="${num1 eq 9}"> num1 9
</c:when>
<c:otherwise> <c:out value="${num1}"/> </c:otherwise>
</c:choose>
JSTL tag ex) : https://ahnsk39.blogspot.com/2017/08/jstljsp-standard-tag-library.html