struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raveendra <ravindra1...@gmail.com>
Subject Re: struts 2.0.11.2 <s:if test=""> problem
Date Wed, 20 Aug 2008 12:38:47 GMT
Thanks Dave it is working

On Wed, Aug 20, 2008 at 4:06 PM, Dave Newton <newton.dave@yahoo.com> wrote:

> --- On Wed, 8/20/08, raveendra wrote:
> > I have a user java bean object in my session; it has getter
> > and setter for roleId.I have the following code in my jsp.
> > Here I am trying to load different images Based on the condition.
> >
> > <s:if test="%{user.roleId}==0">
>
> Try with the OGNL escape around the entire expression:
>
> %{user.roleId == 0}
>
> (I'd also consider isolating the condition results with a bit more
> granularity: in this case *only* the image URL is changing.)
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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