This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60770
    
  65

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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to make two submits to work serially
 
Similar Threads
submit form of child window and show the new screen in parent window.
Radio problems?
Submit form issue with FancyBox
Do we always need form element to invoke action class?
Calling a JavaScript function after the completion of a Struts action