struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: [Struts 2] If exists tag?
Date Wed, 18 Jul 2007 21:58:12 GMT
<s:if test="collection != null && collection.size() > 0">
...
</s:if>

musachy

On 7/18/07, Neil Aggarwal <neil@jammconsulting.com> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message