You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ashish shrivastava <as...@gmail.com> on 2007/11/12 08:44:03 UTC
how to use contains function with arraylist in jstl tags
i want to check whether my arraylist contains a particular value or not,
i dont want to use scriplets , how it can be done using JSTL/struts tags.
Thanks
Ashish
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: how to use contains function with arraylist in jstl tags
Posted by Wes Wannemacher <we...@wantii.com>.
oops, didn't read the message fully. Should read -
<s:if test="arrayList != null && arrayList.contains('yourValue')">
On 11/12/07, Wes Wannemacher <we...@wantii.com> wrote:
> <s:if test="arrayList != null && arrayList.size() > 0">
>
> </s:if>
>
> That should work.
>
> -Wes
>
> On 11/12/07, ashish shrivastava <as...@gmail.com> wrote:
> > i want to check whether my arraylist contains a particular value or not,
> > i dont want to use scriplets , how it can be done using JSTL/struts tags.
> >
> > Thanks
> > Ashish
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> --
> Wesley Wannemacher
> President, Head Engineer/Consultant
> WanTii, Inc.
> http://www.wantii.com
>
--
Wesley Wannemacher
President, Head Engineer/Consultant
WanTii, Inc.
http://www.wantii.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: how to use contains function with arraylist in jstl tags
Posted by Wes Wannemacher <we...@wantii.com>.
<s:if test="arrayList != null && arrayList.size() > 0">
</s:if>
That should work.
-Wes
On 11/12/07, ashish shrivastava <as...@gmail.com> wrote:
> i want to check whether my arraylist contains a particular value or not,
> i dont want to use scriplets , how it can be done using JSTL/struts tags.
>
> Thanks
> Ashish
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Wesley Wannemacher
President, Head Engineer/Consultant
WanTii, Inc.
http://www.wantii.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org