cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylvain.wal...@anyware-tech.com>
Subject Re: Error Handling is NOT working
Date Wed, 11 Sep 2002 13:31:57 GMT
Nicola Ken Barozzi wrote:

>
> Sylvain Wallez wrote:
>
>> Ivelin Ivanov wrote:
>>
>>> ----- Original Message -----
>>> From: "Sylvain Wallez" <sylvain.wallez@anyware-tech.com>
>>> To: <cocoon-dev@xml.apache.org>
>>> Sent: Wednesday, September 11, 2002 8:01 AM
>>> Subject: Re: Error Handling is NOT working
>>>  
>>>
>>>> Why does have a serializer to flush its output when it is recycled ?
>>>> Flushing (and output stream management) is IMO the responsibility 
>>>> of the
>>>> pipeline, and not that of the serializer.
>>>>   
>>>
>>>
>>>
>>> Agreed. The sitemap interpreter should flush the output stream when 
>>> it's
>>> done interpreting a request.
>>>  
>>>
>>
>> [Picky mode on]
>>
>> Nope. Read carefully : "the responsibility of the *pipeline*" ! The 
>> sitemap responsibility is to build the pipeline by executing the 
>> sitemap instructions. The interpreter never touches the output stream 
>> : it gives the Environment object to the pipeline, and this is where 
>> the pipeline gets the stream.
>
>
> I close the stream in CocoonServlet too, because errors can be written 
> out there too... hmmm...
>

That's good also, since CocoonServlet is the last object in the 
processing chain and implements exception handling when no sitemap 
error-handler catches the exception.

Sylvain

-- 
Sylvain Wallez
  Anyware Technologies                  Apache Cocoon
  http://www.anyware-tech.com           mailto:sylvain@apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message