Re: [struts] Thanks! Works also with redirect actions...

2010-09-20 Thread martinib
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}

Re: [struts] Thanks! Works also with redirect actions...

2010-09-20 Thread Dale Newfield
On 9/20/10 12:30 PM, martinib wrote: action name=registrationMain class=somepackage.registrationAction result name=redirect type=redirectAction ${customActionRedirect}?${urlParams} true

Re: [struts] Thanks! Works also with redirect actions...

2007-11-09 Thread Dave Newton
--- 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?

Re: [struts] Thanks! Works also with redirect actions...

2007-11-09 Thread Dale Newfield
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

Re: [struts] Thanks! Works also with redirect actions...

2007-11-08 Thread Dale Newfield
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

Re: [struts] Thanks! Works also with redirect actions...

2007-11-08 Thread Dave Newton
--- 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

ServletRedirect vs ServletActionRedirect (was: [struts] Thanks! Works also with redirect actions...)

2007-11-08 Thread Gary Affonso
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

Re: [struts] Thanks! Works also with redirect actions...

2007-11-08 Thread Dale Newfield
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