Before you dig into this too much, I'd suggest writing a simple servlet that returns just simple text (set the content type to "text/plain" and just output Strings of text). Set the buffer size to something normal (say 4k). Try flushing your PrintWriter/OutputStream after each String and see what happens in the browser.
If this works, then the problem lies in whatever it is you're trying to serve incrementally. If not, then there are other (bigger) problems. Setting your buffer size really really low is probably not the best answer. Just a suggestion... justin At 02:54 PM 9/10/2002, you wrote: >I am guessing but a value of 0 may be completely ignored. Try a buffer size >of 1. It is entirely possible that there is minimum value for the buffer, as >I said am just guessing.... > >Michael Petres >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >InnovObjX Corp. >Web: www.innovobjx.com >Tel: 905-729-2235 x3 >Fax: 905-729-2235 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >-----Original Message----- >From: Sam Cheung [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, September 10, 2002 5:52 PM >To: [EMAIL PROTECTED] >Subject: How can i send respond incrementally in a Servlet > >Thanks. I try setting the buffer to 0, but it still >does not work. > >Sam > >-----Original Message----- >From: Tim Funk [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, September 10, 2002 11:06 AM >To: Tomcat Users List >Subject: Re: How can I send respond incrementally in a >Servlet > > >How about setting your buffer size smaller. It will >force flushing more >often. > >response.setBufferSize(int size) >or ><%@ page buffer="8kb" %> > > > >Sam Cheung wrote: > > Hi, > > > > I would like to send response back to user during >the > > execution of the doGet() method, not upon completion > > of the excution of the doGet() method. > > > > I try calling the flushBuffer() of the response and > > the flush() of the print writer of the response but >it > > does not work, could someone please tell me how I >can > > do it? > > > > Thanks for your help. > > Sam > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > > >__________________________________________________ >Yahoo! - We Remember >9-11: A tribute to the more than 3,000 lives lost >http://dir.remember.yahoo.com/tribute > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
