On 1/17/02 9:49 AM, "Gareth Coltman" <[EMAIL PROTECTED]> wrote:

> 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?

It does exactly that, look at the SessionValidator classes which do exactly
what you specify above. To change the flow you use data.setTarget() right
now.
 
> Gareth
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

-- 

jvz.

Jason van Zyl

http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to