P
PC Leung
Dear all,
When a form firstly displays, the token is invalid.
It becomes valid when the form is re-submitted after
saveToken();
It is because, in struts-example, it demonstrates that
it adds to ActionErrors when a token is invalid.
And the token is always invalid if the form displays
at the first time.
The form will always display error message of invalid token!
Can we do it this way in order to prevent duplicated submission?
When a form firstly displays, the token is valid.
Then user can input and save data. If user submits
again, the token is then invalidated.
When a form firstly displays, the token is invalid.
It becomes valid when the form is re-submitted after
saveToken();
It is because, in struts-example, it demonstrates that
it adds to ActionErrors when a token is invalid.
And the token is always invalid if the form displays
at the first time.
The form will always display error message of invalid token!
Can we do it this way in order to prevent duplicated submission?
When a form firstly displays, the token is valid.
Then user can input and save data. If user submits
again, the token is then invalidated.