posted 18 years ago
To all:
Can anybody tell me how to use synchronization token? I have the following on an Action and it will always return false.
boolean valid = isTokenValid(httpServletRequest);
if(valid){
resetToken(httpServletRequest);
System.out.println("The token is valid");
}else{
System.out.println("The token is invalid");
}
This is to prevent resubmission of the page.
I thought you simply check if the token is valid. If it is, you would reset the token. If not, than you would handle the error.
Do I need to add anything to my web page?
Is there a specific link that explains synchronization token? The places I came across were bits and pieces of information and not too specific.
Thank you in advance.