struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thinh Doan" <>
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"

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

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


Thanks in advance,


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message