<s:if test="collection != null && !collection.isEmpty()"> ... </s:if>
//more elegant :) On 7/18/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
<s:if test="collection != null && collection.size() > 0"> ... </s:if> musachy On 7/18/07, Neil Aggarwal < [EMAIL PROTECTED]> wrote: > > Hello: > > Is there a struts tag to check if a collection is not null > and has at least one element? > > I want to check a collection before printing the table > containing the elements using an <s:iterator> tag. > > Thanks, > Neil > > > -- > Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com > FREE! Eliminate junk email and reclaim your inbox. > Visit http://www.spammilter.com for details. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd
-- "Hey you! Would you help me to carry the stone?" Pink Floyd