You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Hubert Rabago <hr...@gmail.com> on 2005/01/20 17:20:15 UTC
Re: struts token to prevent duplicate submission
>From http://www.husted.com/struts/catalog.html
----------------------
Use the Action Token methods to prevent duplicate submits
There are methods built into the Struts action to generate one-use
tokens. A token is placed in the session when a form is populated and
also into the HTML form as a hidden property. When the form is
returned, the token is validated. If validation fails, then the form
has already been submitted, and the user can be apprised.
saveToken(request)
on the return trip,
isTokenValid(request)
resetToken(request)
----------------------
On Thu, 20 Jan 2005 22:11:09 +0800, Kalra, Ashwani
<as...@capgemini.com> wrote:
>
> Hi,
> Can someone point me to the struts token usage any sample code/or
> documentation link ?
>
> Regds
> Ashwani
>
> This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org