This tag evaluates its nested body content only if the specified value
is present (i.e. not null
) and is not an empty string (i.e. a
java.lang.String
with a length of zero).
JSTL: The equivalent JSTL tag is <c:if> using the
! empty
operator. For example,
<c:if test="${ ! empty sessionScope.myBean.myProperty}">
do something
</c:if>