I'm not sure what the issue might be under Struts, but in PHP, you have to make sure that your sessions are closed immediately when trying to run multiple requests like this. I ran into something that sounds exactly as you describe a year and change ago, and making sure that the session in the parent page was closed before letting an Ajax request fly made all the difference. If you have two pages open in separate tabs, and those pages each grab a session and your server doesn't terminate and write those sessions to disk, you may have a lock there against using those sessions again in your Ajax call.
Walter On Apr 21, 2009, at 6:17 AM, NN wrote: > > When an user tries to send AJAX requests simultaneously from multiple > browser tabs, one request gets completed and the page loads but the > other AJAX calls are preempted. As a result of which the response is > empty for the other calls. Only one call survives. In my application > using struts 2.0, JSP and javascript and the prototype framework, i > found that the server response is empty in the cases mentioned above > though the data gets updated in teh database with the request > parameters. The onSucess event handler for Ajax.request gets called > but the the response is empty. > > Can you please help? > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
