struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Redirecting to legacy action from struts 2 action ?
Date Thu, 12 Sep 2013 11:09:26 GMT
2013/9/12 Mohit Gupta <motgupta@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message