Oh, woah.  I just came in the middle of this
discussion.  I'm looking for something that would
let me have server push through HTTP, and this
looks like it could work.  How does this look
on the client side?  Do you simply use a
URLConnection and read from the InputStream
like it was a normal stream?

Gerard Monsen
1Finder.com



[EMAIL PROTECTED] wrote:

> This doesn't work with tomcat 3.2 try one of the nightly 3.3 builds.
>
> thanks,
>
> - Dale
>
> On Mon, Jan 29, 2001 at 11:47:43AM -0800, Sean Agnew wrote:
> >
> > Iv'e not had any luck with server push and Tomcat. Flushing the PrintWriter
> > doesn't seem to be sending any data. The Browser only hangs until the
> > servlet is completely finished. How can I disable Tomcat from buffering
> > servlet output?
> >
> >
> > response.setContentType("multipart/x-mixed-replace;boundary=boundary");
> >               PrintWriter  out = response.getWriter();
> >               String s = "Awaiting query results, please wait ...\n";
> >               out.println("--boundary");
> >               out.println("Content-Type: text/html\r");
> >               out.println("\r");
> >               out.println(s);
> >               out.println("\r");
> >               out.println("--boundary--");
> >               out.println("\r");
> >               out.flush();
> >               try {
> >               Thread.sleep(3000);
> >               } catch (Exception e) {
> >                       out.println("interrupted: " + e);
> >               }
> >
> >               out.println("Content-Type: text/html\r");
> >               out.println("\r");
> >               out.println("This is the end");
> >               out.println("--boundary--");
> >               out.flush();
> >
> >
> >
> > __________________________________________
> > NetZero - Defenders of the Free World
> > Get your FREE Internet Access and Email at
> > http://www.netzero.net/download/index.html
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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

Reply via email to