Also, the remote scripting API that I created has the capability of
short-circuiting responses in a similar manner.  Its application-dependent
how that logic works, either by message ID or by a date stamp or other
mechanism, as its just another parameter being passed from the client to the
server.

    Erik

----- Original Message -----
From: "Nathan Anderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 25, 2001 1:11 PM
Subject: RE: Real time web page?


> Dave,
>
> There is a sample servlet created by Marty Hall in his book "Core Servlets
> and JavaServer Pages" [ISBN: 0-13-089340-4].  In this sample he does just
> what Robert suggested, setting the refresh interval in the HTTP response.
> But the one twist that makes me mention this is he had a variable of the
> last time the data had changed.  So he compared this timestamp with the
last
> update sent to the http client.  If there was no change, then he sent a
> message to the client that no change has been made.  This can reduce the
> network traffic significantly [if your data doesn't change as frequently
as
> your refresh interval].
>
> He has made is code available to the public at the books website
> [http://www.coreservlets.com/].  To get more info on what/how he did it,
> you'll probably need the book [which IMO is a good one to have anyway].
>
> Nathan Anderson
>
> -----Original Message-----
> From: Robert Parker [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 24, 2001 7:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Real time web page?
>
>
> Hmmm - http is typically connectionless, however there are a few tricks to
> give the impression of what you require...
>
> You can get the server to serve a multipart response and hence give a
> sequence of snapshots.
> You can set a refresh interval in the response header so that the browser
> requests the page again.
>
> Note that this essentially gives you a sequence of snapshots, rather than

> any 'real-time' updates...
>
> As an alternative - have you considered using a 'fat client' ie java
> application downloaded using jumpstart?
>
> regards
>
> Rob
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 25, 2001 2:16 AM
> Subject: Real time web page?
>
>
> >
> >
> > Hi everyone.  We are starting a new project and have a requirement for
> real-time
> > updates in a web browser.  Does anyone know of any tools that allow for
> this,
> > apart from applets?
> >
> > Cheers,
> >
> > Dave
> >
> >
> >
> >
>
>
>

Reply via email to