I am trying to avoid resubmit when user clicks back button or refresh button. After a rigorous search I found that Struts has TOKENS mechanism to acheive this. I tried everything and TOKENs don't want to work with me. I am sure I am missing something.
Here is what I tried to do:
when I click on the link on the menu:
I go to the ActionClass1, I saveToken before forwarding to the JSP page. Now in this JSP when I submit the form, I go to ActionClass2 I check if TOKEN is valid, and everytime I get invalid token... I am missing something somewhere...