Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Unable to clear the cache

Ranch Hand
Posts: 53
MyEclipse IDE Oracle Java
  • 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

Ranch Hand
Posts: 94
Hibernate Eclipse IDE 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
Willie Smits can speak 40 languages. This tiny ad can speak only one:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic