Display Updated/changed value(from cache) in JSP
- From: Buddha <happybuddha1@xxxxxxxxx>
- Date: Tue, 29 Jan 2008 22:32:20 -0800 (PST)
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,
.
- Follow-Ups:
- Re: Display Updated/changed value(from cache) in JSP
- From: GArlington
- Re: Display Updated/changed value(from cache) in JSP
- Prev by Date: Re: EL expressions error
- Next by Date: Re: EL expressions error
- Previous by thread: Sr. Java Programmer/WebLogic Administrator - IMMEDIATE AND HOT
- Next by thread: Re: Display Updated/changed value(from cache) in JSP
- Index(es):
Relevant Pages
|