With Struts tags:
<bean:size name="list" id="collectionSize" />
<logic:greaterThan name="collectionSize" value="0">
<logic:iterate ...>
...
</logic:iterate>
</logic:greaterThan>
<logic:equal name="collectionSize" value="0">
...
</logic:equal>
-----Original Message-----
From: Richard Raquepo [mailto:[EMAIL PROTECTED]]
Sent: Friday, 21 February 2003 2:05 PM
To: Struts Users Mailing List
Subject: Help in Logic Tag
i want to be able to show a message like
"No records found" is there was no records found or logic/iterate did not do
any iteration.
Can anybody provide us a solution to this kind of problem?
thanks a lot!.
i have this in my JSP:
<logic:iterate id="referralsInfo" name="referralsinfos">
<tr>
<td width="0%"> </td>
<td width="15%" class="tablecontentdata">
<bean:write name="referralsInfo" property="lastname"/>
</td>
<td width="16%" class="tablecontentdata">
<bean:write name="referralsInfo" property="name"/>
</td>
<td width="11%" class="tablecontentdata">
<bean:write name="referralsInfo" property="mi"/>
</td>
<td width="14%" class="tablecontentdata">
<bean:write name="referralsInfo" property="phone"/>
</td>
<td width="19%" class="tablecontentdata">
<bean:write name="referralsInfo" property="mobile"/>
</td>
<td width="25%"> </td>
</tr>
</logic:iterate>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]