hi,
Wonder if you have solved the following problem. I encounter the
same problem and after much attempts, I discover that you can do the
following:
<action name="blahAction" class=".....">
<result type="redirect-action">
<param name="actionName">anotherBlahAction</param>
<param name="parse">true</param>
<param
name="yourDynamicParamName">${yourDynamicParamValue}</param>
</result>
</action>
The trick is the ${..}.
Hopes it works for you too.
Cheers,
Yoke Ping
Pascal Lalonde wrote:
Based on this sample from the web site documentation:
<!--
The redirect-action url generated will be :
/genReport/generateReport.action?reportType=pie&width=100&height=100
-->
<action name="gatherReportInfo" class="...">
<result name="showReportResult" type="redirect-action">
<param name="actionName">generateReport</param>
<param name="namespace">/genReport</param>
<param name="reportType">pie</param>
<param name="width">100</param>
<param name="height">100</param>
</result>
</action>
How can I add dynamic parameters ?
Here, values are fixed but what if I want to set a dynamic value from the
action data ?
Based on this
When setting:
<param name="testKey">abc</param>
I'm having the following error:
WARNING: Caught OgnlException while setting property 'testKey' on type
'org.apache.struts2.dispatcher.ServletActionRedirectResult'.
ognl.NoSuchPropertyException:
org.apache.struts2.dispatcher.ServletActionRedirectResult.testKey at
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:133)
What is happening here ?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]