I am encountering a problem in AJAX my XMLHttpRequest status never comes to be 200 However I have debugged my application and have seen that my servlet is getting properly invoked and the servlet successfully fills the string buffer with appropriate content.