본문 바로가기

프로그래밍

[JSP] JSTL if - else (choose - when)

<c:choose>

<c:when test="${data.user_status == 'Y'}"> 사용중 </c:when>

<c:when test="${data.user_status == 'R'}"> 요청중 </c:when>

<c:otherwise> 사용정지 </c:otherwise>

</c:choose>


정리는 나중에