I just use the HttpResponse object. This didn't seem work well for me...
data.setRedirectURI(URL); data.setStatusCode(302); but using the HttpResponse object this worked great... data.getResponse().sendRedirect(URL); Scott -----Original Message----- From: Gareth Coltman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 9:49 AM To: Turbine Developers List Subject: Redirects Hi, In my web development experience redirects have been an extremely useful tool. I have used them for security, to stop repeated form submission, and to make (sort-of) recursive components. I have had no success (after a great deal of work and reading of archives) getting redirects to work in Turbine 2. It seems that the current buffer is sent back to the client along with the redirect, which cause the browser to display half a page and then the http header at the bottom. Has anyone successfully manage to perform a redirect? All u turbine 3 guys - I noticed in the source that the redirect in commented out - will redirecting work with a default (classic) pipeline. Typically I would want the following kind of logic - in this case to prevent the user's back button returning them to the login action after a login. LOGIN: if user's credentials are valid Redirect to the home page else Just set the template to login fi What do you guys think? Gareth -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
