Tuesday, June 20, 2006 07:59 AM
What AJAX framework are you using? This might be a problem with the framework. Generally speaking, XmlHttpRequests are regular HTML requests from the server side, so each request created an HttpServletRequest with a session and everything. It looks like your code or the framework code is problematic.
I would recommend using DWR for your AJAX calls. It's an excellent remoting framework. On the server side you won't have to write a Struts Action, but rather a function that returns an int, and DWR will handle the marshaling. Try it and see for yourself.