Yeah, I think my best option here is to just convert my list of ints to
a comma separated list. It seems though, that since the request object
can handle lists, that there should be a way to add list parameters in
struts.
Right now the function to add a parameter in ServletRedirectResult looks
If you are using a result type of "redirectAction" you don't
explicitly code the url just give it the action name and let the
result construct the correct url.
To pass parameters with a redirectAction you do it like this:
< param name="actionName">CompleteConfirmation
< par
Right, this is similar to what I want, but it would have to be
dynamically generated, as I don't know the size of the list. For
instance, in this case, the user would have selected 4 orders, but in
the next case could select 10. The problem isnt passing parameters, it's
passing a parameter that
Sorry the line result should be like this:
>
s>test/CompleteConfirmation.action?orderNumbers=${ordernumber1}&orderNumbers=${ordernumber2}&orderNumbers=${ordernumber3}&orderNumbers=${ordernumber4}
Eric Rich
Data System Administrator
Murray State University
Address: 226 Alexander Hall
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.
s>test/CompleteConfirmation.action?orderNumber&${orderNumbers}
>
I hope this helps.
Eric Rich
Data System Administrator
Murray State University
Add
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.
6 matches
Mail list logo