I am a bit confused on the tokens.
For example,
Action 1:
saveToken() and forward to
JSP JSP :
Submit
Action 2:
if (tokenValid) {
resetToken();
doSaveOperation()
} else {
???
}
I am confused about the else. When the first submit has been performed, the action class starts processign the same. The second submit must not succeed, however, I dont want to send the user to some error page as they need to know the results of the first submit when it completes.
What am I missing here?