How do I change the domain from current to another one when redirecting using ActionForward? I have an action class that in some conditions should redirect to an application located at a different domain. Normally I am at http://www.domain1.com and do the following:
Code:ActionForward fwd = new ActionForward(); fwd.setPath("/actions/load.do"); fwd.setRedirect(true);
Now being at domain1.com I have to do something like that:
Code:ActionForward fwd = new ActionForward(); fwd.setPath("http://www.domain2.com/actions/load.do"); fwd.setRedirect(true);
However when run it, I am redirected to
So to repeat the question, how do I make it go to domain2 from domain1?
UPD: I've been told to play with setContextRelative(false); It didn't help. Tried false, tried true, nothing.