In Struts 2 redirectAction can dynamic complex objects be passed without type conversion?

I am trying to pass an ArrayList of objects from one activity to another. I would like to do something like this:

  <result name="success" type="redirectAction">
    <param name="actionName">myAction</param>
    <param name="parse">true</param>
    <s:iterator status="status" value="${myObjectsArrayList}">
        <param name="myObjectsArrayList[#status.index].var1" value=<s:property value="var1"/> />



source to share

1 answer

Use the chain result type and it will keep all the parameters on the stack from the original action to the final result. It should be noted that you cannot reassign parameters with a "chain" result.



All Articles