Hello All,
I have a typical scenario:
1. User is presented a list of orders, and can select some of them
to complete. A list of order numbers is sent to the next action.
(ViewOrders.action)
2. Struts action completes the order by iterating through the list
of passed order numbers. (CompleteOrders.action)
3. The user is redirected to a confirmation action, listing the
orders that were completed. (CompleteConfirmation.action)
The question I have is getting from step 2 to 3.
This is a fairly standard redirect-after-post setup, but I want to
be able to redirect to a confirmation action and pass a parameter list.
Essentially what I want is:
<action name="CompleteOrders" class="test.CompleteOrdersAction">
<result name="success" type="redirectAction">
<param name="actionName">CompleteConfirmation</param>
<param name="namespace">/test</param>
<param name="orderNumbers">${orderNumbers}</param>
</result>
</action>
Resulting in a redirect to:
test.com/test/CompleteConfirmation.action?orderNumbers=1&orderNumbers=2&orderNumbers=3&orderNumbers=4
However, this doesn't seem to work. Has anyone found a way to do this?
I realize there are ways to do this by using the session, but Id
prefer to pass this through the URL if possible.
Thanks,
Tim
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org