사용자 도구

사이트 도구


java:jsp:jstl

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
java:jsp:jstl [2012/05/07 18:12]
kwon37xi
java:jsp:jstl [2012/12/13 17:45] (현재)
kwon37xi [JSTL]
줄 1: 줄 1:
 ====== JSTL ====== ====== JSTL ======
 +  * [[http://blog.naver.com/nkjang/20022722502|JSTL에 대한 정리]] 연산자 포함
 +  * [[http://neokido.tistory.com/223|JSTL에 대한 정리]]
  
 ===== forEach varStatus ===== ===== forEach varStatus =====
   * [[http://bmchild.blogspot.com/2012/03/jstl-cforeach-varstatus-properties.html|JSTL c:forEach varStatus Properties]]   * [[http://bmchild.blogspot.com/2012/03/jstl-cforeach-varstatus-properties.html|JSTL c:forEach varStatus Properties]]
-|Property|Getter|Description|+ 
 +Property Getter  ^Description ^
 |current|getCurrent()|The item (from the collection) for the current round of iteration| |current|getCurrent()|The item (from the collection) for the current round of iteration|
 |index|getIndex()|The zero-based index for the current round of iteration| |index|getIndex()|The zero-based index for the current round of iteration|
줄 13: 줄 16:
 |step|getStep()|The value of the step attribute| |step|getStep()|The value of the step attribute|
  
 +===== null 검사 =====
 +<code jsp>
 +<%-- 아래는 객체가 안 비었는지 여부(null, 빈 문자열, 빈 배열, 빈컬렉션 검사이다. --%>
 +<c:if test="${not empty obj}">
 +...
 +
 +<%-- 아래는 null만 검사한다 --%>
 +<c:if test="${obj != null}">
 +...
 +혹은
 +<c:if test="${obj ne null}">
 +...
 +</code>
  
java/jsp/jstl.1336381938.txt.gz · 마지막으로 수정됨: 2012/05/07 18:12 저자 kwon37xi