aspose file tools*
The moose likes Struts and the fly likes S2: caching problem,-user clicks on a link and then back w/ broweser data is lost Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "S2: caching problem,-user clicks on a link and then back w/ broweser data is lost " Watch "S2: caching problem,-user clicks on a link and then back w/ broweser data is lost " New topic
Author

S2: caching problem,-user clicks on a link and then back w/ broweser data is lost

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
Hi All,

Here's a scenario that drives me crazy:
1. A user fill up a form (a date) and clicks submit
2. An Action return a List of items related to the user input
3. The list is returned as an ID (AJAX) to the form
4. User sees the list and can click a URL from the list

Problem: When the user clicks a url from the list and then click BACK on the BROWSER - the list is GONE and he needs to input the date/data again.

can anyone explain why this happens and how to circumvent this?

Form:



report_id is where the new data will appear (the list)

The result from the action is a list added to the Session


Again, once the user clicks the URL and go back with the browser all data is lost and he needs to re-input.

* I tried to remove the request, response in the file above - nothing; user still need to input data again.

Thanks for any pointers!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: S2: caching problem,-user clicks on a link and then back w/ broweser data is lost
 
Similar Threads
struts 2 don�t get radio button
Struts 2 Ajax Dojo.js reload problem
pagination problem
maintin checkbox stauts during paginatin(dispalytag)
struts2 with ajax: howto return a value to div?