logo       

Re: $m->redirect() problem: msg#00121

web.mason.user

Subject: Re: $m->redirect() problem

> One thing about clear_buffer and flush_buffer is that they try to make
> Mason's scomps, filters, etc. behave consistently even when autoflush is
> on.
>
> clear_all_buffers breaks this behavior. For example, the scomp(redirect)
> test will still fail if autoflush is on, because the page content will be
> flushed from the buffer before scomp is called. I'm not really objecting
> to it in this case, but maybe the need to use clear_all_buffers should
> call into question the wisdom of redirecting inside an scomp at all.

I don't think there's anything unwise about redirecting inside an scomp. The
decision to redirect is made by the component, while the decision to use
scomp is generally made by the caller because it needs to filter or examine
the component output.

Jon



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise