Prevention of double sending is a common problem.
Despite the fact that there are many solutions since you marked it struts2, two methods are provided by a ready-made framework for double-submit processing:
It returns a result invalid.token, which may, for example, display on an error:
. , . , , "checkout" -. , : invalid.token, . , TokenSessionStoreInterceptor, , .
. , token tag. , , . , ( ), .
Token Interceptor, , - , : submit , , ( ) (-):
TokenInterceptor, . , . , , invalid.token , , , .
!
, , , , - , Javascript, .
, Firebug? , Javascript? (, ), , .
, , ... , , ( ajax, ) - .