jsp - How to use s:set as param to s:push making static method call in Struts 2 -
i tried :
<s:set name="ordersymbol" value="eurusd" var="ordersymbol"/> <s:push value="@dao.positions@positionso(%{#ordersymbol})"> <s:set name="ordersymbol" value="eurusd" var="ordersymbol"/> <s:push value="@dao.positions@positionso(#ordersymbol)"> <s:set name="ordersymbol" value="eurusd" var="ordersymbol"/> <s:push value="@dao.positions@positionso(ordersymbol)"> <s:set name="ordersymbol" value="eurusd" var="ordersymbol"/> <s:push value="@dao.positions@positionso(%{ordersymbol})">
neither of above 4 worked, method null parameter.
although if try
<s:push value="@dao.positions@positionso('eurusd')">
it works fine.
i realize it's old question... but:
the reason in doesn't work "value object." correct <s:set/> be:
<s:set var="ordersymbol" value="'eurusd'" />
and correct <s:push/> second one.
Comments
Post a Comment