File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Page not refresbing properly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
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://aspose.com/file-tools
 
subject: Page not refresbing properly
 
Similar Threads
HashMap or database call
static variables values are not getting refreshed
Tapestry-request loses parameters passed after page is rendered
form not populated with data
Seam ajax rerender rich:dataTable