There is an example of push on the examples page of the installation.  It
only works for Netscape, though, because IE doesn't support the necessary
HTML commands, or whatever.  THere's probably an appropriate way to get the
same effect for IE.

Jay

-----Original Message-----
From: Geoffrey Talvola [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 16, 2002 11:01 AM
To: 'Stuart Donaldson'; Webware Discussion (E-mail)
Subject: RE: [Webware-discuss] Support for Server Push technology?


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
__


**********************************************
This e-mail and any attachments may be confidential or legally privileged.
If you received this message in error or are not the intended recipient, you
should destroy the e-mail message and any attachments or copies, and you are
prohibited from retaining, distributing disclosing or using any information
contained herein.  Please inform us of the erroneous delivery by return
e-mail. Thank you for your cooperation.
**********************************************

ec03/04



-------------------------------------------------------
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

Reply via email to