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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -