• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in refreshing the data..

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I want to display the data in a tree view.
To fetch the data from database, populating the data in Vector object
and forwarding the same to a jsp file thro' servlet coding.
In the jsp i am getting the vector objects from the request object and
displaying the data.
The code is perfectly working when the application starts.
When the browser is idle for some time and again i try to access the links, the vector objects are giving the last accessed values and not refreshing the data.
When i restarts the server everything is perfect. I am not using the session object.

Pl. can you point me where i have to make correction to solve this problem.
ThanX,
Senthil
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
When u r in the development stage set the reload interval to a minimum value,because u need to make changes often,but once everything is developed then set the reload interval to the default value.
At present reduce the reload interval.
ur problem will be solved.
 
SenthilKumar Natarajan
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mahadevan,
Thank u for your immediate response.
My problem is not in development stage.
I finished the development and facing the problem in testing face.
Senthil
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it browser caching?

When you click refresh, or the 'link' a second time, is there something you can put in your servlet to confirm that it's refreshing the vector? ie: System.out.println("refreshing vector");
 
SenthilKumar Natarajan
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My problem was not due to browser cache. I think the server getting time out. I think now u can understand my problem.
ThanX
Senthil
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try to put the vector in session and set session time out as per u'r requirement.
reply
    Bookmark Topic Watch Topic
  • New Topic