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

2010-09-20 Thread Dale Newfield
On 9/20/10 12:30 PM, martinib wrote: ${customActionRedirect}?${urlParams} true I'm guessing there's some xml in there that some intermediate mail process stripped out? I set t

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 ${customActionRedirect}?${urlParams} true I set the parameters to: customActionRedirect="registrationConfirm" urlParams

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 beha

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-08 Thread Dale Newfield
Dave Newton wrote: mySuccess ${fooId} ${barId} 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 found, though (or is null, etc.) From reading the code it adds "¶m=" even if the param has no value, which differs f

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 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 understan

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