logic
Tag notEmpty
Evaluate the nested body content of this tag if the requested variable is neither null, nor an empty string, nor an empty java.util.Collection (tested by the .isEmpty() method on the java.util.Collection interface).
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>
Tag Information |
Tag Class | it.eng.spago.taglib.logic.NotEmptyTag |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |
Attributes |
Name | Required | Request-time | Type | Description |
name | false | true | java.lang.String | The service context data to be compared specified by this attribute. |
scope | false | true | java.lang.String | The bean scope within which to search for the bean named by the name property, or "any scope" if not specified. |
Variables |
No Variables Defined. |
Output Generated by
Tag Library Documentation Generator.
Java, JSP, and JavaServer Pages are trademarks or
registered trademarks of Sun Microsystems, Inc. in the US and other
countries. Copyright 2002-4 Sun Microsystems, Inc.
4150 Network Circle
Santa Clara, CA 95054, U.S.A.
All Rights Reserved.