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

Popular posts from this blog

youtube download

com.gpki.secureweb.GPKISecureWEBException: ErrCode=1507,ErrMsg=[GPKI_CMS_ProcessEnvelopedData] 해당 인증서로는 데이터를 풀 수 없습니다.

rexpert 공식필드(javascript) 점검일 주기 계산