Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to clear the cache

 
maganti suryanarayana
Ranch Hand
Posts: 53
Java MyEclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a new web app for registering a customer.

My struts.xml is as follows:




My tiles.xml is as follows:



My validations for the input fields like customer name, age , mail, telephone are working perfectly and i am using Action-Validation.xml for it.

The problem is that when ever i am entering incorrect details and hitting the submit button is giving me the errors in the same page as result name="input" i have redirected to the customer.jsp. Its working good.
But when all the fields are given correctly and submit button is hit the data is stored in database. Thats also good. When i press back arrow in the browser, i can able to see the data which i dont want to see after successful
submit. For this i have written a interceptor called response cache which will set the headers as nocaceh, expires to 0 , etc etc.

How can i show the empty fields when i hit the back button of the browser

thanks & regards

surya
 
Yogesh Lonkar
Ranch Hand
Posts: 94
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure this is good solution or not but i did some thing like this to prevent page from going back
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic