Asynchronous Display of Action Results

2011-07-11 Thread Baubak Gandomi
Hello, I am not able to find any mention of this topic, or even if it is really Struts 2-related. I have a view which calls two actions using s:action. The methods that are called in the domain of the actions take different times to execute. I would like my actions to be run parallel. I.e.

Re: Asynchronous Display of Action Results

2011-07-11 Thread Wes Wannemacher
You can achieve the outcome you desire by using AJAX instead of the s:action tag. Here is an (untested) jquery example - div id=remoteAction1/div div id=remoteAction2/div script type=text/javascript $(document).ready(function() { $(remoteAction1).load(s:url action=action1 /);

RE: Asynchronous Display of Action Results

2011-07-11 Thread Baubak Gandomi
Thanks I'll test your solution, and see how it works. -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: lundi 11 juillet 2011 16:52 To: Struts Users Mailing List Subject: Re: Asynchronous Display of Action Results You can achieve the outcome you desire by using

Re: Asynchronous Display of Action Results

2011-07-11 Thread Dave Newton
On Mon, Jul 11, 2011 at 4:51 PM, Baubak Gandomi wrote: Thanks I'll test your solution, and see how it works. It's the only solution there is. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional

RE: Asynchronous Display of Action Results

2011-07-11 Thread Baubak Gandomi
regards Baubak -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: lundi 11 juillet 2011 16:52 To: Struts Users Mailing List Subject: Re: Asynchronous Display of Action Results You can achieve the outcome you desire by using AJAX instead of the s:action tag. Here