jstl에서 비교문


Ex) eq (==)

1. <c:if test="${ null eq test_column }"> // null

2. <c:if test="${ 0 eq test_column }"> // 숫자

3. <c:if test="${ '0' eq test_column }"> // 문자

 

Ex) empty  

<c:if test="${ empty  test_columnMap }"> // list, map 객체 등

<c:if test="${ !empty  test_columnMap }"> // 비어 있지 않은 경우

 

Ex) ne (!=)

1. <c:if test="${ null ne test_column }"> // null

2. <c:if test="${ 0 ne test_column }"> // 숫자

3. <c:if test="${ '0' ne test_column }"> // 문자


출처 : http://cafe.naver.com/msjava/550

반응형

'JSP & Spring' 카테고리의 다른 글

JSTL 기본 사용  (0) 2016.10.31
스프링 외부 경로 폴더 지정하기  (0) 2016.09.12
@ModelAttribute, @RequestParam  (0) 2016.09.08
스프링 초기환경세팅  (0) 2016.09.04
utf-8 인코딩.  (0) 2016.09.01

+ Recent posts