Hi Tarun
Have a look at this
(Search for 'token' on this page)
http://www.scioworks.net/camino_doc/manual/strutsIntro/struts1_0.html
Hope you find a solution.
Harjot
- Original Message -
From: "Tarun Dewan" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sen
Use redirect = "true" in the forward property of your action mapping. As
a rule of thumb, you should redirect if you do any action that involves
writing in the persistence layer such as deleting, saving, updating,
etc...
HTH,
-Yves-
> -Original Message-
> From: Tarun Dewan [mailto:[EMAIL
> -Original Message-
> From: Tarun Dewan [mailto:[EMAIL PROTECTED]
> Sent: 14 May 2004 11:47
> To: 'Struts Users Mailing List'
> Subject: Refresh - Duplicate Records Issue.
>
>
> Dear All,
>
> I'm facing one problem in my application. If user clicks 'REFRESH'
> (through right click men
Use JavaScript to avoid re-submitting the form, which in turn will prevent invoking
the duplicate call to the database.
-Original Message-
From: Tarun Dewan [mailto:[EMAIL PROTECTED]
Sent: Friday, May 14, 2004 4:17 PM
To: 'Struts Users Mailing List'
Subject: Refresh - Duplicate Records
Struts provides 'tokens' (Action.saveToken(), Action.isTokenValid()) to
catch users doing this.
One way of making it more difficult for users to do this is to use a
redirecting forward to your save confirmation page. This way a rfresh will
just refress the confirmation, not the record creation.
P
5 matches
Mail list logo