Now if i put some alert.say alert("Hi"); just before the alert(xmlhttp.responseText);
I guess i need to set some response type or some thing like that kind of stuff in the action class after getting the list..
Thanks for your solution..i checked the log and then i resolved it.
Actually i was forwarding the request to wrong jsp. no for testing purpose i created the blank.jsp and forwarded the request to that jsp.
now i am able to get the status code as 200. but when i wanted to check the returned list from the server in the function,i am getting it blank.
using this alert i am trying to read the response,but i am getting it as blank.
I was able to resolve the issue by adding the following lines in the action class in the end
response.getWriter().write("Data to be passed";
After this issue got resolved,i am facing a problem.
Actually my requirement is this that i need to place the list of account views coming from xmlHttp.responseText in a dropdown(i.e populate a dropdown).
so my response (i.e xmlHttp.responseText looks like