So, your form posts via AJAX to the action and the results sent as (JSON,
XML, HTML) and rendered via Javascript on some div on the page?

If that is the case then you do indeed have a problem.  One easy fix is to
use an actual list page rather than rendering the list via Javascript.  But
if that is not an option then you can inspect the search field when the page
is loaded and then automatically run the search and render the results if
the search field is not blank.   Is the date field empty when you come back? 
What clears it?


xianwinwin wrote:
> 
> Hi All,
> 
> Here's a scenario that drives me crazy:
> 1. A user fills-up a form (a date) and clicks submit
> 2. An Action return a List of items related to the user's 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'S BUTTON* - the list is GONE and he needs to input the
> date/data again.
> 
> can anyone explain why this happens and how to circumvent this?
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/S2%3A-caching-problem%2C-user-clicks-on-a-link-and-then-back-w--broweser-data-is-lost-tp21518044p21524683.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to