미분류

jstl empty (null) check

쥬쥬파파 2014. 6. 28. 17:48

<c:if test="${empty var1}">
    var1 is empty or null.
</c:if>
<c:if test="${not empty var1}">
    var1 is NOT empty or null.
</c:if>