IT모아

JSTL choose 태그 예제 본문

JSTL

JSTL choose 태그 예제

아롱사태남 2015.06.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

c-choose-example

'JSTL' 카테고리의 다른 글

JSTL ArrayListSize 표현하기!  (0) 2015.08.19
JSTL Hashtable 사용 시  (0) 2015.08.18
JSTL choose 태그 예제  (0) 2015.06.22
JSTL EL 표기법!  (0) 2015.05.18
JSTL 조건, 반복문 태그  (0) 2015.05.14
0 Comments
댓글쓰기 폼