This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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