Leszek Gawron wrote:

>I'm using as an application server for pocket pc application. The problem is
>downloading even a small file via 19200 GPRS modem takes time, so I wanted to
>provide a user with progress bar. The problem is that cocoon is not sending
>Content-Length header. Is there a nice and clean way to include it in response
>header?
>       ouzo
>  
>

AbstractSerializer.java has:

    /**
     * Test if the component wants to set the content length
     */
    public boolean shouldSetContentLength()

Unfortunately, this valus is not configurable. If you subclass 
HTMLSerializer.java or XMLSerializer.java (whatever you use), you can 
return true from this method, and Cocoon will buffer response and set 
content length header.

Vadim




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to