It prevents an erroneous double submit. If your users use the back button
or click submit twice the isTokenValid() will return false since the token
was reset on the original call.
In the struts-example application in (SaveRegistrationAction.java:190,
:161)
the author calls the method
: Friday, February 01, 2002 11:30 AM
To: [EMAIL PROTECTED]
Subject: Re: Transactional Control Tokens?
It prevents an erroneous double submit. If your users use the back button
or click submit twice the isTokenValid() will return false since the token
was reset on the original call.
In the struts
I believe the transactional token is used to validate that
the user does not submit the same form twice. A common
problem is web applications.
Nick
-Original Message-
From: Greg Hess [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 10:47 AM
To: Struts Users Mailing
Could you describe how a user would submit a form twice? By clicking fast?
or by going back after the first submit?
-Original Message-
From: Afshartous, Nick [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 11:00 AM
To: Struts Users Mailing List
Subject: RE: Transactional
Message-
From: Afshartous, Nick [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 11:00 AM
To: Struts Users Mailing List
Subject: RE: Transactional Control Tokens?
I believe the transactional token is used to validate that
the user does not submit the same form twice
both
- Original Message -
From: Greg Hess [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 31, 2002 5:15 PM
Subject: RE: Transactional Control Tokens?
Could you describe how a user would submit a form twice? By clicking fast?
or by going back
6 matches
Mail list logo