jump to navigation

Redirect Action Result and dynamic parameters June 20, 2007

Posted by maxmil in : struts2 , trackback

This is not in the documentation yet but in order to pass dynamic parameters to a redirect action result you need to include the parameter “parse” with value true.

Heres an example of passing the id of an internal bean doc with the param name id.

<result type="redirect-action">
<param name="actionName">edit</param>
<param name="namespace">/docs</param>
<param name="parse">true</param>
<param name="id">${doc.id}</param>


no comments yet - be the first?