This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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
Travis Hein
Ranch Hand

Joined: Jun 06, 2006
Posts: 161
how about a javascript method that is called by the onclick handler of the html:submit


this requires the client to have javascript enabled, and that the page to be reloaded between when submits are clicked. (or some other means to reset the formSubmitted flag).


Error: Keyboard not attached. Press F1 to continue.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Avoiding multiple request at a time
 
Similar Threads
How this bean is remembering the state?
Web application and cancel a operation that take long time. How do it with EJB 3.1
JSP/FORM question
how to tell when ie 7 is done rendering?
Avoiding multiple request at a time