I'm not sure about this but can't you invoke a function in OGNL. I
guess thats how the getText function works in ognl. Probably you can
write a function in your action like getResult and invoke it using
<s:property value="getResult(key.price,value)"/>
Correct me if i'm wrong.


On Tue, Apr 21, 2009 at 10:34 AM, Stefano Tranquillini
<stefano.tranquill...@gmail.com> wrote:
> Hi all
> i've a hashmap that contains object and a value(int).
>
> i would display all the value of the object:
>
>   <s:iterator value="#session.cart.items">
>             <s:property value="key.name" />
>              <s:property value="key.price" />x<s:property value="value" />
>   </s:iterator>
>
> and a value calculated at runtime that is a moltiplication of:
> <s:property value="key.price" /> and <s:property value="value" />
>
> how can i do that?
>
> thanks
>
> --
> Stefano
>



-- 
Thanks
Suneel

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to