Yes i am sure value is "/customerhome.do?custIdId=200". Also do you mean that result mapping should be @Result(name = "redirectTo", location = " ${#parameters.redirectLocation} ", type = "redirect") })
instead of @Result(name = "redirectTo", location = "#parameters.redirectLocation", type = "redirect") }) On Thu, Sep 12, 2013 at 4:39 PM, Lukasz Lenart <lukaszlen...@apache.org>wrote: > 2013/9/12 Mohit Gupta <motgu...@gmail.com>: > > 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") }) > > Are you sure that you return "/customerhome.do?custIdId=200" ("/" is > important) from getRedirectLocation() ? And #parameters cannot work as > ${} or %{} is the only expected opening char for an expression. > Instead ${#parameters.redirectLocation} will work. > > > 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 > >