File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes How to make two submits to work serially Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to make two submits to work serially" Watch "How to make two submits to work serially" New topic
Author

How to make two submits to work serially

Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
I have a parent page which open a child page. I have a requirement where if child page <form> is submitted then after the submit process of child page completes, parent page <form> should also submitted.

I have written following code in doSubmit() of child page.



I am facing issues that both statements are getting executed parallel and hence updated data of child page is not getting displayed on parent page.

How to make this two statement to work serially?

My blood is tested +ve for Java.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61606
    
  67

Submit the parent form in the response of the child form.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Thanks Bear!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make two submits to work serially