You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Upasana Sharma <sh...@gmail.com> on 2010/04/28 15:54:12 UTC
struts if tag related help
Hi
is something like this possible in struts2
<s:if test="%{not empty #session.UserList}" >
I am aware of <logic:notempty> tag but is it possibel to achive the same
result using <s:if> tag..
--
Thanks and Regards
Upasana Sharma
Re: struts if tag related help
Posted by Upasana Sharma <sh...@gmail.com>.
thanks a lot.... it worked out...
On Wed, Apr 28, 2010 at 7:46 PM, Wes Wannemacher <we...@wantii.com> wrote:
> <s:if test="%{#session.UserList.size() > 0}" >
>
> (assuming that #session.UserList evaluates to some form of java.util.Set)
>
> -Wes
>
> On Wed, Apr 28, 2010 at 9:54 AM, Upasana Sharma <sh...@gmail.com>
> wrote:
> > Hi
> >
> > is something like this possible in struts2
> >
> > <s:if test="%{not empty #session.UserList}" >
> >
> > I am aware of <logic:notempty> tag but is it possibel to achive the same
> > result using <s:if> tag..
> >
> >
> > --
> > Thanks and Regards
> > Upasana Sharma
> >
>
>
>
> --
> Wes Wannemacher
>
> Head Engineer, WanTii, Inc.
> Need Training? Struts, Spring, Maven, Tomcat...
> Ask me for a quote!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: struts if tag related help
Posted by Wes Wannemacher <we...@wantii.com>.
<s:if test="%{#session.UserList.size() > 0}" >
(assuming that #session.UserList evaluates to some form of java.util.Set)
-Wes
On Wed, Apr 28, 2010 at 9:54 AM, Upasana Sharma <sh...@gmail.com> wrote:
> Hi
>
> is something like this possible in struts2
>
> <s:if test="%{not empty #session.UserList}" >
>
> I am aware of <logic:notempty> tag but is it possibel to achive the same
> result using <s:if> tag..
>
>
> --
> Thanks and Regards
> Upasana Sharma
>
--
Wes Wannemacher
Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org