Lukasz, is there any workaround so that i can get rid of namespace?

As i mentioned if i hard code the url under location attribute, it works
fine and does not add any namespace

@Result(name = ComposeMessageCrudAction.REDIRECT_TO, location =
"/customerhome.do?custIdId=200", type = "redirect") })


But if mention any dynamic value(like getting it from
#parameters.redirectLocation
or ${redirectLocation} ), it does not work
@Result(name = "redirectTo", location = "#parameters.redirectLocation",
type = "redirect") })


On Thu, Sep 12, 2013 at 12:39 PM, Lukasz Lenart <lukaszlen...@apache.org>wrote:

> 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