Mostly to keep people from pressing submit more than once, which can
result things like duplicate sales.
In the action that prepares the form, call saveToken(request).
In the action the processes the form, check isTokenValid(request)). If
it is not valid, you can send them to an error or help page. If it is
valid, resetToken(request) and process.
"Suriyanarayanan, Senthil Kumar" wrote:
>
> Hello,
> I would like to know what is the significant of the token in the
> Action class.
> Also I would like to know when/Why/Where to use it.