I think you should not use Request Dispatcher to forward for include. When forward is used, it means that you are navigating to some other page. You should be returning back to same page where you would parse response object and update your UI. Try not giving RequestDispatcher rd = req.getRequestDispatcher(strSiguienteForma);rd.forward(req,res);
Originally posted by s penumudi: I think you should not use Request Dispatcher to forward for include.
Why not? What sort of shuffling around happens on the server should be completely immaterial to the client. All that matters is the response that is sent back.
Now, a redirect could certainlly botch up matters, but using the dispatcher on the server should not be an issue.
That said, I'm not sure why it is not working for the OP. My suggestion would be to carefully compare the responses, both the body and the headers, to see what is different between cases that work, and cases that do not work. [ February 01, 2006: Message edited by: Bear Bibeault ]