Hello there! I am new in using ajax for jsp so I am asking for your
help in my problem. I have this code:

Writer writer = response.getWriter();
response.setContentType("text/xml");
response.setHeader("Cache-Control", "no-cache");
writer.write("<message>hi</message>");
writer.flush();

which successfully writes an xml file andthe receiving jsp file
successfully reads it by:

var req;
if (typeof XMLHttpRequest != "undefined") {
       req = new XMLHttpRequest();
   } else if (window.ActiveXObject) {
       req = new ActiveXObject("Microsoft.XMLHTTP");
   }
req.responseXML.getElementsByTagName("message")[0];

 However, does anyone know where it places the said xml and and the
name of the said xml file? Thank you so much!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to