The moose likes Struts and the fly likes Urgent....please HELP....Different user Multiple submission problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Urgent....please HELP....Different user Multiple submission problem" Watch "Urgent....please HELP....Different user Multiple submission problem" New topic

Urgent....please HELP....Different user Multiple submission problem

kay lin
Ranch Hand

Joined: May 20, 2004
Posts: 132
Hi all:
I have posted earlier about the usage of saveToken() and check isTokenValid(request) method. Because I wanted to make sure that the user doesn't click the "submit" button twice. I managed to achieve that, However what I want is the following:

suppose the user press the "submit" button more than once. The thread that executes the first request still runs, but has no means of providing its response to the browser. Hence, the user may be left with the impression that the transaction did not complete, while in reality, it may have successfully completed.

So I would like to know if there can be a complete solution that prevents duplicate submission and still ensures the display of a response that represents the original request's outcome.

some of you may suggest me to look at the article on JavaWorld

I have indeed, and downloaded their example and I ran it on my local app server, it DOESN"T claim to do what it is supposed to do, I clicke on the "OK" button more than once, and the second request just brings me to an empty page, because the ActionForward object returns NULL.

So if anyone, has solved this problem before, please do let me know...

I'd truly appreciate it...

Again, I would like to thank everyone for their time in advance.

Many thanks....
I agree. Here's the link: http://aspose.com/file-tools
subject: Urgent....please HELP....Different user Multiple submission problem
Similar Threads
saveToken, isTokenValid, resetToken
how to avoid second request when the server is processing first request
How to disable the Back and Refresh functionalities?
multiple form submission
how to be sure the paremeter that comes from the form in servlet?