This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60048
    
  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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make two submits to work serially
 
Similar Threads
Do we always need form element to invoke action class?
Radio problems?
Submit form issue with FancyBox
Calling a JavaScript function after the completion of a Struts action
submit form of child window and show the new screen in parent window.