Hi, i'm using Struts 2.1.8.
I have this struts configuration
action name=registrationMain class=somepackage.registrationAction
result name=redirect type=redirectAction
${customActionRedirect}?${urlParams}
On 9/20/10 12:30 PM, martinib wrote:
action name=registrationMain class=somepackage.registrationAction
result name=redirect type=redirectAction
${customActionRedirect}?${urlParams}
true
--- Dale Newfield [EMAIL PROTECTED] wrote:
...any struts committers reading this: If I
provided
a patch for an extra specially named parameter like
supressEmptyParameters that did just what you'd
expect, what are the chances that someone would
commit it?
You mean on a Result type?
Dave Newton wrote:
You mean on a Result type?
On the redirectAction result type.
Personally I'd prefer this as the *default* behavior
and force you to specify if you *did* want empty
parameters included, but that's just me.
I agree, but I don't think the patch should change current
Gunnar Hillert wrote:
Thanks for your helpful post! Interestingly, this also works with redirect
actions.
Hrm...
The javadoc for ServletActionRedirectResult says:
This result uses the ActionMapper provided by the ActionMapperFactory
to redirect the browser to a URL that invokes the specified
--- Dale Newfield [EMAIL PROTECTED] wrote:
So it is clearly indicated that redirectAction is
recommended over redirect, but I neither
understand why, nor quite what it is that this
result type does...
Precisely for the reasons stated; it adds a layer of
abstraction that understands action
Dale Newfield wrote:
So it is clearly indicated that redirectAction is recommended over
redirect, but I neither understand why, nor quite what it is that this
result type does...
If so, the new request needs to have the same URL (which must be encoded)
no matter which result type generated
Dave Newton wrote:
result name=success type=redirectAction
param name=actionNamemySuccess/param
param name=fooId${fooId}/param
param name=barId${barId}/param
/result
Arguably, yes, and for a couple of reasons. Off the
top of my head I don't recall what will happen if the
param isn't
8 matches
Mail list logo