--- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]