You can use savetoken(request) method for generating a token (when loading the
screen)and
Cheque for the existence of token using istokenvalid(request) method for ensuring that
you do not submit same data again.
Code in action wld be like
isTokenValid(request)
{
...
DB insert
}
Thanks,
Satish
-Original Message-
From: Olivier Citeau [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 3:49 PM
To: [EMAIL PROTECTED]
Subject: preventing user from validating twice
Hi,
i think it must be a FAQ, but i did not found anything on
this issue.
When my user submits a form, the action executes an SQL
Insert in the DBMS.
What happened is that when user click twice, the second
inserts fails with SQLException.
What is strange, is that i cannot reproduce it in WSAD, but
it happens on a full Websphere.
Is there a way i can know that a user already submitted a
form ?
=
Olivier Citeau
Paris, France
Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! Créez votre Yahoo! Mail
sur http://fr.benefits.yahoo.com/
Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo!
Messenger sur http://fr.messenger.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]