On Wed, 1 Jan 2003 00:17, you wrote: > hi, > > is there a way to perform a complete http redirect mid execution?
Yes, this is the code we use: // next two don't actually work as advertised... data.setStatusCode(302); data.setRedirectURI(redirectURL); // ... so ... data.getResponse().sendRedirect(redirectURL); > the reason i require this is for a redirect during login. i can > retain the screen the user initially navigation to and redirect them > to that screen, but how do i retain the action, if one was present? > say the url was > http://www.foo.com/foo/servlet/foo/template/Secure.vm/action/FooActio > n?foo=bar > > then this is the url i'd like to redirect the user to once they've > successfully logged in. i can retain the action, or even the full > url, but once the login action has completed and the screen is being > executed it's too late for the initial action. We do this by executing the next action from our Login action using the following code: ActionLoader.getInstance().exec(data, nextAction); Regards, -- Rodney -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
