This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Avoiding multiple request at a time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Avoiding multiple request at a time" Watch "Avoiding multiple request at a time" New topic
Author

Avoiding multiple request at a time

Selva Varadhan
Greenhorn

Joined: Aug 20, 2005
Posts: 14
Hi

Scenario :
In my application, i have the page, contains two buttons like Previous and Next button.

User Action:

[1] User clicks Next button (Submit Action )
[2] Before the response reached the Browser, user clicks previous button.

Issue :
This kind of action some time leads to inconsistant stage.
How to handle the user action, when one request is in processing stage.I don't want to disable the button.

Plz proivde some solution to handle this situation

Regards,
Selva varadhan
Zip Ped
Ranch Hand

Joined: Jul 26, 2005
Posts: 336
You can put a js code to detect the second mouse click and prevent the event from taking place and put an alert which says that there is a request already in process.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Avoiding multiple request at a time
 
Similar Threads
JSP/FORM question
how to tell when ie 7 is done rendering?
Web application and cancel a operation that take long time. How do it with EJB 3.1
How this bean is remembering the state?
Avoiding multiple request at a time