Re: Display Updated/changed value(from cache) in JSP
- From: Buddha <happybuddha1@xxxxxxxxx>
- Date: Wed, 30 Jan 2008 21:12:40 -0800 (PST)
On Jan 30, 8:34 pm, "gwoodho...@xxxxxxxxx" <gwoodho...@xxxxxxxxx>
wrote:
There is a timer running.
I'm not sure if you have tried this but;
Why not create a javascript timer, one that sends a request to a
servlet every few seconds/minutes (depending on your capacity/server
load). In this way the response could give the value of the field you
need.
Ive done something similar in the past, but at a previous company so i
can't copy paste code im afraid. I managed it with the references at
w3schools. Great site that.
Hope that helps,
Graeme
Hi,
thanks for your replies.
make periodic requests to the server (via AJAX isWell, thats the point. Assume 5 browsers have established a session
with the web server.
now 1 of them has bid his amount, whcih is, changed the current price
value. THIS, can be posted to the server.Also can be done using AJAX.
However, I would also want to update the rest of the 4 browsers with
the latest update of the price.
Why not create a javascript timer, one that sends a request to a
servlet every few seconds/minutes (depending on your capacity/server
load). In this way the response could give the value of the field you
need.
The seconds part is what I also thought about; because this is a
auction site and all users got to be updated asap. However, I am
afraid, I dont know if it is a good solution.
Wont it increase the traffic, slow down the performance and restrict
the number of users I can have ?
I have heard a lot of stock tickers work the same way. Any clue on how
they function ?
thanks
.
- Follow-Ups:
- References:
- Display Updated/changed value(from cache) in JSP
- From: Buddha
- Re: Display Updated/changed value(from cache) in JSP
- From: GArlington
- Re: Display Updated/changed value(from cache) in JSP
- From: gwoodhouse@xxxxxxxxx
- Display Updated/changed value(from cache) in JSP
- Prev by Date: TIBCO Specialist -Immediate Requirement from Trinity
- Next by Date: Re: Java Socket Constructor
- Previous by thread: Re: Display Updated/changed value(from cache) in JSP
- Next by thread: Re: Display Updated/changed value(from cache) in JSP
- Index(es):
Relevant Pages
|