This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Struts and the fly likes Page not refresbing properly Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Page not refresbing properly" Watch "Page not refresbing properly" New topic
Author

Page not refresbing properly

Raji Balakrishnan
Greenhorn

Joined: Jan 19, 2005
Posts: 5
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

Joined: Feb 08, 2006
Posts: 948
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Page not refresbing properly
 
Similar Threads
Tapestry-request loses parameters passed after page is rendered
form not populated with data
Seam ajax rerender rich:dataTable
HashMap or database call
static variables values are not getting refreshed