struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Truncate namespace while forwarding the request to legacy action from struts 2?
Date Mon, 04 Mar 2013 07:47:54 GMT
Redirect instead of forwarding


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

2013/3/3 Mohit Gupta <motgupta@gmail.com>:
> Folks
>
> i have a scenario where i need to forward the request from struts 2 action
> to legacy action class which is not struts 2.Here is my flow
> JSP--->Action1(Struts 2 action under customer namespace)--->Action2(Non
> Struts 2 Action)--->ResultJSP.
>
> Here is my result annotation which actually forwards the request to legacy
> action
>
> @Result(name = "displayCustomer",location = "legacyAction.do", type =
> "dispatcher")
>
> I can see my ResultJSP correctly. But issue is that  browser is looking for
> all resources included in that jsp like images, javascript files
> under namespace for first action i.e customer
>
> Is there a way i can truncate the namespace before forwarding to my legacy
> action (in result annotation) or if not
> possible i can set it in my action method before returning result?

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


Mime
View raw message