Sorry the line result should be like this:

<result name="success" type="redirectAction"
> s>test/CompleteConfirmation.action?orderNumbers=${ordernumber1}&amp;orderNumbers=${ordernumber2}&amp;orderNumbers=${ordernumber3}&amp;orderNumbers=${ordernumber4}</result>


Eric Rich
Data System Administrator

Murray State University
Address:  226 Alexander Hall
         Murray, KY 42071-3340
TEL :     270-809-3358
FAX:      270-809-5359

On 01/29/2010 12:14 PM, Eric Rich wrote:
Timothy,

        If I understand you correctly you want to redirect and pass values.  I
have done this by encoding my url with proper html syntax.

<action name="CompleteOrders" class="test.CompleteOrdersAction">
        <result name="success" type="redirectAction"
s>test/CompleteConfirmation.action?orderNumber&amp;${orderNumbers}</result>
  >  </action>

I hope this helps.

Eric Rich
Data System Administrator

Murray State University
Address:  226 Alexander Hall
           Murray, KY 42071-3340
TEL :     270-809-3358
FAX:      270-809-5359

On 01/29/2010 11:12 AM, Timothy Orme wrote:
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


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to