Iam using struts in my application, whenever I clicked on the refresh button of the browser the form is getting submitted twice. I tried to use saveToken() and isTokenVaild() methods but still, the form is getting submitted when I click on the Refresh button. please see my code below.
Are you calling saveToken in the action that initially displays the page? Does your page have an html:form tag? If you look at the generated html source (view source) you should see a hidden field that contains the token id.