programming/jstl

[jstl] c:when and or

labj 2014. 10. 1. 09:42

[jstl] c:when and or


* 기본

<c:choose>
  <c:when test="${param_r1 eq 'FindLibroId' }">
 
  </c:when>
  <c:when test="${param_r1 eq 'FindLibroPw' }">
 
  </c:when>
  <c:when test="${param_r1 eq 'AuthLibroUser' }">                          
 
  </c:when>
  <c:otherwise>
 
  </c:otherwise>
</c:choose>


* eq

<c:when test="${param_r1 eq 'FindLibroId' }">


* or

<c:when test="${resultMap.status_code == 'G1' or resultMap.status_code == 'G8'}">


* ||

<c:when test="${resultMap.referer eq null || resultMap.referer eq ''}">


* and

<c:when test="${resultMap.status_code == 'G1' and resultMap.status_code == 'G8'}">


* empty

<c:when test="${empty join_day}">유료가입 전</c:when>


* not empty

<c:when test="${not empty event.ATCH_FILE_NAME}">


* >

<c:when test="${resultMap.startPage-1 > 1}">


* <

<c:when test="${resultMap.endPage+1 < resultMap.maxPage}">


* gt

<c:when test="${fn:length(addresses) gt 0}">


[jstl] c:when and or