How to inject param in Struts 2 Tag OGNL way
Posted
by Roy Chan
on Stack Overflow
See other posts from Stack Overflow
or by Roy Chan
Published on 2010-05-31T19:46:35Z
Indexed on
2010/05/31
19:53 UTC
Read the original article
Hit count: 284
Hi Guru,
I want to use a property as a param of an object's method.
<s:property value="orderProductId" />
returns correct value (e.g. 1)
<s:iterator value="%{order.getProductById(1).activations}">
gives me correct value too. But
<s:iterator value="%{order.getProductById(#orderProductId).activations}">
doesn't. Not sure why #orderProductId doesn't interpret correctly.
© Stack Overflow or respective owner