반응형
JSTL 조건식 사용할 때..
// eq
// - ==
<c:if test="${name eq '이름'}">
<c:if test="${name eq null}">
<c:if test="${age eq 20}">
// ne
// - !=
<c:if test="${name ne '이름'}">
<c:if test="${name ne null}">
<c:if test="${age ne 20}">
// empty
// - null, 빈 문자열, 빈 배열, 빈컬렉션 검사
<c:if test="${empty name}">
<c:if test="${!empty name}">
<c:if test="${empty list}">
<c:if test="${!empty map}">
반응형
'프로그래밍' 카테고리의 다른 글
[git] error: src refspec master does not match any (0) | 2023.07.05 |
---|---|
[이클립스] Plugin execution not covered by lifecycle configuration 오류 (0) | 2021.03.11 |
인코딩 (0) | 2014.03.24 |
[svn] 사용자 추가 (2) | 2011.02.15 |