Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Page not refresbing properly

 
Raji Balakrishnan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JSP page for which i have written two Action classes one is to load the page when anyone clicks on the link of that page, while the other is to update the new values entered in the page. Now the problem i am having in this is, once the page loads for the very first time it take the values correctly from the database and displays it. Supoose i changes the values and try to save it, the values get correctly updated in the database and also for that moment the new values appear on the page but if i go to some other link and come back to this page it shows the old values that were there before saving. I really donno how to solve this iisue. Also if i logout completely and login again, its only at that time the changes values are getting displayed.
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sure sounds like a browser caching issue. You can test this by disabling your browser's cache or by clearing the cache before going back to the page. A Google search on "prevent browser caching jsp" will turn up a few good pages.

- Brent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic