hi, I have the following problem. I programmed a java servlet, which responses to ajax requests from my javascript application. the answer from the java servlet is a xml encoded message. normally everything works well, but if I send "too much" (I think) Ajax reqeusts, it happens that more responses are within one ajax reponse, and as a consequence, firefox complains with the error message "junk after root document": e.g.:
<root>
<node1></node1>
</root>
<root>
<node1></node1>
</root>
and that is not allowed (two times <root>
in one message). Why does this happen? I always thought for each ajax call, a new servlet instance will be started. is that wrong?