I need to dig into the source more deeply. I looked briefly but couldn't satisfy myself as to whether you could do a redirect that wasn't (at least) relative to the application. Sorry, but this isn't an issue I've had to face. As a last resort you could do:
response.sendRedirect(response.encodeUrl(path)); return null; Returning null is very important, as it signals the RequestProcessor that it doesn't need to do anything else. Hopefully someone else will have additional wisdom for you. Angie Lin wrote: > Trying again.... > > Anybody with clues on why RedirectingActionForward isn't redirecting? > This used to work in 1.0.2. > > Angie Lin wrote: > >> Hi there, >> >> RedirectingActionForward doesn't seem to redirect anymore. It's >> trying to forward and I'm ending up with a garbled URL like: >> >> http://localhost:7001/myapp/http://someothersite.com/ >> >> My code is: >> ActionForward oldfwd=mapping.findForward("othersite"); >> String path=oldfwd.getPath(); >> path.append("?id="+id); >> RedirectingActionForward newfwd=new RedirectingActionForward(path); >> return newfwd; >> >> >> This used to work in 1.0.2, but I've since upgraded to 1.1b. I'm >> also using WL6.1 if that helps at all. I've searched the archive and >> read the thread on message 38728, but that problem was fixed by >> setting the contextRelative attribute to true, which doesn't quite >> help me, since I'm trying to forward to another domain. Any other >> configuration settings I might be missing? > -- Eddie Bush -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>