struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From martinib <>
Subject Re: [struts] Thanks! Works also with redirect actions...
Date Mon, 20 Sep 2010 16:30:04 GMT

Hi, i'm using Struts 2.1.8.
I have this struts configuration

<action name="registrationMain" class="somepackage.registrationAction">
			<result name="redirect" type="redirectAction">

I set the parameters to:

and i want the final url to be something like this:

but the parameter is never used, and the id is lost.

Can you help me? What i'm doing wrong.
Thanks in advance.

DNewfield wrote:
> 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 behavior, 
> just enable desired behavior.
>> This is probably more appropriately an XWork issue,
>> too, but it could be added to StrutsResultSupport (or
>> whatever that's called).
> The patch I uploaded to the new JIRA issue (WW-2310) is against 
> org.apache.struts2.dispatcher.ServletActionRedirectResult .
> Since I've still not even migrated from 2.0.9 to 2.0.11 it'll be a while 
> until I can benefit from this, but let's hope someone decides to test 
> and commit it.
> -Dale
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message