B
Buddha
Dear all,
I did post this on the sun forum with out too much help. I am assuming
I shall be lucky enough to get some here.
Since I am clueless on how I wish to do it, I do not really have
anything that I have done.
This is part of my problem
What I am doing is : Displaying the value (price of an item) from the
database on to a JSP.
The price of the item can be changed. I am putting that in a cache
(because only the final updated price goes to the db) and then; what I
need to do it : to display this updated price (from the cache) in all
browsers that are currently "seeing" this JSP, without having to
refresh the jsp, i.e.
I have dabbled with ajax, however I am stuck at : the Jsp can make an
async. call to the servlet, but how do I make the servlet send the
changed value to the jsp.
to put across my point in a more clearer way.
There is a timer running.
You can think Its like an auction site which multiple people would
access. they could change values (prices, amounts they would enter as
a bid). If a user A enters an amount then that should be displayed to
other users logged in too. Users B,C and D should be able to see the
changed amount, which means B,C and D('s browsers) should be
automatically updated. They wouldnt be making any requests to the
server.
What ways could I explore to achieve this behaviour ?
I would appreciate if some one could point me to a direction.
Rgds,
I did post this on the sun forum with out too much help. I am assuming
I shall be lucky enough to get some here.
Since I am clueless on how I wish to do it, I do not really have
anything that I have done.
This is part of my problem
What I am doing is : Displaying the value (price of an item) from the
database on to a JSP.
The price of the item can be changed. I am putting that in a cache
(because only the final updated price goes to the db) and then; what I
need to do it : to display this updated price (from the cache) in all
browsers that are currently "seeing" this JSP, without having to
refresh the jsp, i.e.
I have dabbled with ajax, however I am stuck at : the Jsp can make an
async. call to the servlet, but how do I make the servlet send the
changed value to the jsp.
to put across my point in a more clearer way.
There is a timer running.
You can think Its like an auction site which multiple people would
access. they could change values (prices, amounts they would enter as
a bid). If a user A enters an amount then that should be displayed to
other users logged in too. Users B,C and D should be able to see the
changed amount, which means B,C and D('s browsers) should be
automatically updated. They wouldnt be making any requests to the
server.
What ways could I explore to achieve this behaviour ?
I would appreciate if some one could point me to a direction.
Rgds,