struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Newfield <d...@newfield.org>
Subject Re: Arithmatic operations in Struts2 - ognl
Date Tue, 05 May 2009 18:34:23 GMT
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
View raw message