Thanks for the explanation. P.S. I switched to interceptor. Works likes a charm.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Will Hartung Sent: Monday, June 23, 2008 8:50 PM To: Stripes Users List Subject: Re: [Stripes-users] is it possible to redirect response whilerendering stripes template definition jsp? On Jun 23, 2008, at 8:07 PM, Leonard Gestrin wrote: > My question was more driven by curiosity why redirect does not happen > and there are no Exceptions at all. A redirect is done by setting an HTTP header. Once the response starts streaming, header can no longer be written. To add to the fun, this isn't precisely true. JSPs stream in to a buffer, when the buffer fills up, it's "committed" to the browser. Up until that commit point, you can set headers and what not. So, you could expand the buffer for all of your JSPs, of you can make your redirect decision earlier in the process. Regards, Will Hartung ------------------------------------------------------------------------ - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
