Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prasad Welekar on Apr 10, 2008 11:50
open dhtmlx forum
xmldoc object

Hello support,

I have your sample code to generate xml by java. In loadXML(url) method url is the name of servlet who generates xml.

This is the last code.

Document xmldoc = new DocumentImpl();
.
.
serializer.asDOMSerializer();
     serializer.serialize(xmldoc);

Actually I want to see the generated XML.
1. How can I see?

2. I want to show multiple grid on the same page, And I dont know the count of grid.
Count is coming from db.
If say there are four table to show.
What I want is to generate four xml for all four table in the servlet, and just want to make ArrayList of
all four xml object. So that I can pass that object to the loadXML method of grid in the jsp.
Is it possible to make arrayList of say xmldoc object(or something similar which have xml for multiple grid)?
if yes how to do that?

Thanks.

Answer posted by Support on Apr 11, 2008 02:32
>>1. How can I see?
Basically you can just load the URL of your servlet in separate window.
Also, you can use debug version of dhtmlxcommon.js which shows all data fetched from server
        http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&q=2545&ssr=yes&s=dhtmlxcommon

>> Is it possible to make arrayList of say xmldoc object(or something similar which have xml for multiple grid)?
If I understood your question correctly - it is not possible, you can't load data for all grids by single call, so each grid will generate separate request for servlet.