2013/9/11 Christoph Nenning <christoph.nenn...@lex-com.net>:
> it should work when you add namespace "/" to paramters:
>
> @Result(
>         name = "redirectTo",
>         location = "#parameters.redirectLocation",
>         type = "redirect",
>         params={"namespace", "/"}
> )
>
>
> see this wiki page:
> http://struts.apache.org/development/2.x/docs/redirect-result.html

It's a bug in the docs ;-) Pure redirect result doesn't support
"namespace" as it doesn't make sense when you performing redirect to
some web resource (not an action). Docs updated:

https://cwiki.apache.org/confluence/display/WW/Redirect+Result

@Result(name = "redirectTo", location = "${redirectLocation}", type =
"redirect") })

and the redirectLocation will be resolved against the current action


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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

Reply via email to