-
JSTL choose 태그 예제JSP/JSTL 2015. 6. 22. 10:18
<c:set var="number1" value="${222}"/>
<c:set var="number2" value="${222}"/>
<c:set var="number3" value="${222}"/>
<c:choose> <c:when test="${number1 < number2}"> ${"number1 is less than number2"} </c:when> <c:when test="${number1 <= number3}"> ${"number1 is less than equal to number2"} </c:when> <c:otherwise> ${"number1 is largest number!"} </c:otherwise> </c:choose>
Output
'JSP > JSTL' 카테고리의 다른 글
JSTL ArrayListSize 표현하기! (0) 2015.08.19 JSTL Hashtable 사용 시 (0) 2015.08.18 JSTL EL 표기법! (0) 2015.05.18 JSTL 조건, 반복문 태그 (0) 2015.05.14