struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart" <lukasz.len...@googlemail.com>
Subject Re: [s2] Problem with redirection
Date Tue, 01 Jul 2008 20:22:23 GMT
> <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</param>
  <params name="namespace">/secondparam>
  <params name="parse">true</param>
  <params name="id">${id}</param>
</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


Mime
View raw message