• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to clear the cache

 
Ranch Hand
Posts: 53
MyEclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 94
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic