posted 16 years ago
If you want to aviod resubmitting the page using the browser back button, this is what we can do.
1. On load of page(in the action class method that you call while loading the page) ,
call this method : saveToken(request)
2. On submitting the page(in the action class method that you call when submitting the page), before you start processing the the form elements(contacts infromation in your case),
call this method: isTokenValid(request)
Ex:
if(!isTokenValid(request)){
return mapping.findForward("displayReSubmitError");
}
3. At the end of the method that you called on submitting the page, (after you process the contacts information),
call this method: resetToken(request)
[ December 27, 2007: Message edited by: Vani D Bandargal ]