You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by JOSE L MARTINEZ-AVIAL <jl...@gmail.com> on 2011/09/17 17:27:16 UTC
URL is stripped of its parameters on redirectAction
Hi,
According to the documentation(
http://struts.apache.org/2.2.3/docs/parameters-in-configuration-results.html)
it is possible to use parameters in a URL on a RedirectAction, as follows:
<result
type="redirectAction">NavigateTo?myParameter=myValue</result>
But when I use that, the redirect instruction does not have the parameter,
only the first part of the URL. Is there anything I'm missing?
Thanks
JL
Re: URL is stripped of its parameters on redirectAction
Posted by Steven Yang <ke...@gmail.com>.
I think the document is only talking about how to include dynamic parameters
for redirectAction you should do something like
<result type="redirectAction">
<param name="actionName">NavigateTo</param>
<param name="myParameter">myValue</param>
</result>
see http://struts.apache.org/2.0.6/docs/redirect-action-result.html
On Sat, Sep 17, 2011 at 11:27 PM, JOSE L MARTINEZ-AVIAL <jl...@gmail.com>wrote:
> Hi,
> According to the documentation(
>
> http://struts.apache.org/2.2.3/docs/parameters-in-configuration-results.html
> )
> it is possible to use parameters in a URL on a RedirectAction, as follows:
>
> <result
> type="redirectAction">NavigateTo?myParameter=myValue</result>
>
> But when I use that, the redirect instruction does not have the parameter,
> only the first part of the URL. Is there anything I'm missing?
>
> Thanks
>
> JL
>