반응형
반응형
반응형

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}">



반응형

+ Recent posts