struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li <ampyx...@gmail.com>
Subject Re: How to disable the submit button after first click
Date Mon, 17 Jul 2006 12:24:59 GMT
you can use saveToken(), and isTokenValid() to check twice submission. Check
Struts Web for details.

On 7/17/06, Pillay, Kiren KN <Kiren.Pillay@standardbank.co.za> wrote:
>
> Hi
>
> I saw a saveToken method somewhere in Action that can be used to
> circumvent this problem.
>
> Regards
> Kiren
>
> -----Original Message-----
> From: Michael Jouravlev [mailto:jmikus@gmail.com]
> Sent: 14 July 2006 08:21 PM
> To: Struts Users Mailing List
> Subject: Re: How to disable the submit button after first click
>
> On 7/14/06, priyadarsh kankipati <darsh_elec@yahoo.co.nz> wrote:
> > Thanks Krishna for your suggestion. Can you please elaborate on your
> suggestion?
> >
> >   Thanks Robert for your suggestion.
> >   But I think this will not work as can't change the value of the
> "disabled" attribute till the page loads.
> >   My requirement is: I need to disable the submit button to avoid
> double submit. To be clear, lets say the user is booking an online
> travel ticket. I want to avoid the user to double submit and hence
> purchase twice.
>
> The most robust way is to do it on database level.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> __________________________________________________________________________________________________________________________________
>
> Standard Bank Disclaimer and Confidentiality Note
>
> This e-mail, its attachments and any rights attaching hereto are, unless
> the context clearly indicates otherwise, the property of Standard Bank Group
> Limited
> and/or its subsidiaries ("the Group"). It is confidential, private and
> intended for the addressee only. Should you not be the addressee and receive
> this e-mail by
> mistake, kindly notify the sender, and delete this e-mail, immediately and
> do not disclose or use same in any manner whatsoever. Views and opinions
> expressed in this e-mail are those of the sender unless clearly stated as
> those of the Group. The Group accepts no liability whatsoever for any loss
> or
> damages whatsoever and howsoever incurred, or suffered, resulting, or
> arising, from the use of this email or its attachments. The Group does not
> warrant the integrity
> of this e-mail nor that it is free of errors, viruses, interception or
> interference. Licensed divisions of the Standard Bank Group are authorised
> financial services providers
> in terms of the Financial Advisory and Intermediary Services Act, No 37 of
> 2002 (FAIS).
> For information about the Standard Bank Group Limited visit our website
> http://www.standardbank.co.za
>
> ___________________________________________________________________________________________________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
When we invent time, we invent death.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message