hi friends,
i have the issue AJAX with
Struts.
i am providing the code here.
in JSP JavaScript request.onreadystatechange = replyMethod(request);
request.open('GET',url,true);
request.send(null);
function replyMethod()
{
var message = request.responseXML.getElementsByTagName("message")[0];
}
here i am getting problem , i am unable to get the responseXML object.
in Action Class perform() response.setContentType("text/xml");
response.setHeader("Cache-Control","no-cache");
response.getWriter().write("some value");
return mapping.findForward("Success");
my issue is i am able to get the request.responseText
but i am unable to get the request.responseXML
how to return the xml from Action class
please help me in this way