You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Milan Milanovic <mi...@yahoo.com> on 2008/07/02 16:29:25 UTC

Re: [s2] Problem with redirection - [resolved]

O.K. Lukasz, this works now! Thanks.

--
Milan


Lukasz Lenart wrote:
> 
>> <action name="change" class="MySecondAction">
>>                <!-- Redirect to another namespace -->
>>                <result type="redirect-action">
>>                    showChanges
>>                    /second
>>                </result>
>> </action>
> 
> Add staticParamIntreceptor [1] or use paramsPrepareParamsStack [2] and
> define result like that
> 
> <result type="redirect-action">
>   <params name="actionName">second
>   <params name="namespace">/secondparam>
>   <params name="parse">true
>   <params name="id">${id}
> </result>
> 
> [1]
> http://struts.apache.org/2.0.11.2/docs/static-parameters-interceptor.html
> [2] http://struts.apache.org/2.0.11.2/docs/interceptors.html
> 
> 
> Regards
> -- 
> Lukasz
> http://www.lenart.org.pl/
> 
> ---------------------------------------------------------------------
> 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://www.nabble.com/-s2--Problem-with-redirection-tp18220420p18238765.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