struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohit Gupta <motgu...@gmail.com>
Subject Re: Truncate namespace while forwarding the request to legacy action from struts 2?
Date Mon, 04 Mar 2013 08:41:10 GMT
But incase of redirect all request parameters needs to be passed manually
or struts 2 has some built in support for this

On Mon, Mar 4, 2013 at 1:17 PM, Lukasz Lenart <lukaszlenart@apache.org>wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message