struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From martinib <marti...@gmail.com>
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">
				${customActionRedirect}?${urlParams}
				true
			</result>
</action>

I set the parameters to:
customActionRedirect="registrationConfirm"
urlParams="documentID=200"

and i want the final url to be something like this:
registrationConfirm.action?documentId=200

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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Redirects---Dynamic-Parameters-tp13609701p29761178.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message