File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
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://aspose.com/file-tools
 
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
Avoiding multiple request at a time
how to tell when ie 7 is done rendering?
JSP/FORM question