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.
Hi I have an application in which I have a shopping cart page (jsp) on clicking the submit order button on the cart page I go to order confirmation page(jsp).I am passing all the values present on the cart page as hidden values to the confirmation page There is one remove button on the cart page just like yahoo which has checkboxs against the records & users can select the checkbox to remove any item.Once he removes all the items a mesage in red font comes that n items have deleted & there are no items in the cart. Now my problem is that if user presses the back button of the browser after he has deleted the items then he comes to the cart page where he has checked the checkboxes & if then he presses the submit order button then he is shown the confirmation page with the all the items(which in reality are not there) Basically I want how to prevent the user to visit the previous page. Any pointers in this regards will be of great help Regards Asheesh
It is problematic to disable the back button. One thing you can do is try to put this in your html in the head tag: <HEAD><META HTTP-EQUIV="Pragma" CONTENT="no-cache"> </head> This will remove the cache of the browser and (I think) cause the previous page to be refreshed and blank when you hit the back button. Julia
Joined: Dec 10, 2000
Hi Julia I tried with that thing but now also I am able to visit my previous page. Is there any other way out ? Ashish