struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhaarat Sharma <bhaara...@gmail.com>
Subject Re: Arithmatic operations in Struts2 - ognl
Date Tue, 05 May 2009 18:58:07 GMT
thanks! thats better.

On Tue, May 5, 2009 at 2:34 PM, Dale Newfield <dale@newfield.org> wrote:

> Bhaarat Sharma wrote:
>
>> oh nevermind. got it.
>> Total Age <s:property value="someList.get(0).age + someList.get(1).age"/>
>>
>
> I really advise you to make that
> <s:property value="%{someList.get(0).age + someList.get(1).age}"/>
>
> If you have to remember which attributes are ognl expressions and which are
> not you will pull your hair out.
>
> -Dale
>
> ---------------------------------------------------------------------
> 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