If you call self.response().flush() then it sends all accumulated response so far to the client. By alternating calls to self.write() with self.response().flush() you can stream the response to the client.
I'm not sure if it responds to a broken client connection. Ideally it would raise a known exception on a broken client connection that you could choose to either catch or ignore, depending on whether you need to do any cleanup. - Geoff > -----Original Message----- > From: Stuart Donaldson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 16, 2002 9:59 AM > To: Webware Discussion (E-mail) > Subject: [Webware-discuss] Support for Server Push technology? > > > Does webware support server push technology? > > In particular, can I send information to the browser, flush > the output, and > then send more information? > > In one application, I need to send a page, and continually > update the page > with new information until an asynchronous operation > completes. I don't > want to do client-side pull with a refresh because I want the > server to be > in control of refreshing the page when it is necessary. > > In another application, I need to send a stream of data to an > applet running > on the client. > > How does the servlet then get notified if the connection to > the client dies > in these cases. In the CGI model, this seems to take care of > itself, as > when the connection is killed by the client, apache closes > the stdout from > the cgi process and the cgi process ends up terminating. But in the > AppServer model, how would this be accomplished? > > Thanks... > > Stuart Donaldson > > > > ------------------------------------------------------- > This sf.net email is sponsored by: viaVerio will pay you up to > $1,000 for every account that you consolidate with us. > http://ad.doubleclick.net/clk;4749864;7604308;v? > http://www.viaverio.com/consolidator/osdn.cfm > _______________________________________________ > Webware-discuss mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/webware-discuss > ------------------------------------------------------- This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us. http://ad.doubleclick.net/clk;4749864;7604308;v? http://www.viaverio.com/consolidator/osdn.cfm _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
