Nobody will like this solution, but I've had to resort to it (as recommended
by a coworker).  Create a page scope javascript variable, and increment it
when the user clicks the button, if it's equal to one , return true,
otherwise false.  I am fully aware of the shortcomings of javascript (for
all the smarties out there who want to shoot it down ;-), but I'm just not
smart enough to come up with a better way to force the user to wait until
processing is done after clicking a button....

> -----Original Message-----
> From: Ted Husted [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 18, 2003 3:45 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Application Flow with Transaction Tokens?
>
>
> Greg Hess writes:
>  > I would like to ignore the fact that the double submit happened and
>  > just display the proper receipt. Should I forward the user to a
>  > "transaction already processed page" they will loose their proper
>  > receipt and never visually receive the receipt as I also send it
>  > by e-mail.
>
> I don't really have any practical advice, but I did want to mention that
> I've always wondered about the best way to resolve this sort of thing.
> So far my own double-submit cases have not involved a long-running
> process, and have been easy to resolve with an message page. If you come
> up with a solution for the long-processing scenario that you like, be
> sure to let us know. I'd like to see a how-to regarding this in
> documentation area. It's definately a thorny problem.
>
> -Ted.
>
>
> --
> Ted Husted,
> Struts in Action <http://husted.com/struts/book.html>
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to