:: Forum >> Version 2 >>

XML data from a servlet ?

More information on this topic is available in the documentation section: /active.howto.load.xml/.

servlet:

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

javascript:

var req;
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
)
var table = new AW.XML.Table;
table.setXML(req.responseXML);
.......

why not work??? need fresh table???
Wednesday, November 2, 2005
Hi,
you need to put a node in wich you shoud enclose all the rest nodes you are rendering, also in this node should put an schema definition.

regards
Ssamtao
Thursday, November 3, 2005



This topic is archived.

Back to /active.howto.load.xml/

Documentation:

Forum search