JSTL

JSTL empty , 빈값 비교 , 널값 체크

SeoHW 2018. 12. 4. 09:14
SMALL

[JSTL empty , 빈값 비교 , 널값 체크]

JSTL empty

<c:if test="${empty test}">

<tr>

<td colspan="4">해당 목록이없습니다

</td>

</tr>

</c:if>


test 값이 비어있을시 실행문이 작동됩니다


empty 부정시엔

<c:if test="${!empty test}">

<tr>

<td colspan="4">해당 목록이없습니다

</td>

</tr>

</c:if>

하면 됩니다^^


LIST