Hi,
Your question cotains the answer too.
Use out.flush()
:)
The header pragma no-cache is for the browsers meaning
the page shouldn't be cached in a local folder on the clients machine.
So it has nothing to do with apache.
The out.flush() is working  perfectly, but this is maybe a HTML
formatting problem.
Like an example the table doesn't get displayed
until a </table> tag is reached. So if You have all
the cotent in a big table, the out.flush() works just fine
but the browser won't display it only when the
whole table is sent.
So check the : <p> and <table> tags.

Hope it helps.

I wish You all the Best,

Balogh Andras - [EMAIL PROTECTED]
GraFX http://www.grafx.ro
Tel/Fax: 065-250660







----- Original Message -----
From: pat <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 26, 2000 6:06 AM
Subject: Apache buffering servlet output...


> HI everybody !
>
> Can anybody tell me how to avoid the caching/buffering of a servlet output
?
> The servlet streams out  a continious stream of data ...but the data is
> buffered at the Apache web server and sent to the browser only when the
> servlets finishes..i want it to send the data to the browser as soon as i
> say flush()..
> i have already tried response.setHeader("Pragma","no-cache") ...
> doesnt work...
>
> any ideas
> pat
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to