tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Agnew <Se...@corp.netzero.net>
Subject RE: getting server push to work
Date Mon, 29 Jan 2001 23:15:20 GMT
Thanks for the tip. I tried the 3.3 (zip file) versions w/ no luck. Do you
think I'd be better off trying the Unix versions? Or perhaps the 4.0 beta?

-----Original Message-----
From: dale+tomcat@88.net [mailto:dale+tomcat@88.net]
Sent: Monday, January 29, 2001 2:50 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: getting server push to work


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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org


__________________________________________ 
NetZero - Defenders of the Free World
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html

Mime
View raw message