struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thinh Doan" <td...@twjconsulting.com>
Subject check for null collection
Date Wed, 28 Nov 2001 19:52:56 GMT
I've defined the following collection but don't know how to use the logic
tag to check if it contains no data to display appropriate message:

<logic:present name="MEMBERS" scope="request">
<bean:define id="myArray" name="MEMBERS" type="java.util.TreeSet"
scope="request"/>

    	<logic:iterate id="member" name="myArray" type="com.mycompany.Member">
	...
	</logic:iterate>

    <some logic to check for null "myArray">
             No members
    </logic:???>

</logic:present>

Thanks in advance,

Thinh


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message