Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Marvin Elder on Aug 08, 2008 13:24
open dhtmlx forum
tree component called by jsp

I'm using jsps with java, and am trying to use a jsp to load a tree xml file - loadXML("myTree.xml").

I can load the xml file through a regular html.  Is there anything special I need to do with a jsp?

 

Answer posted by Support on Aug 11, 2008 03:21
You can load data from any server side source ( static XML or JSP script which generates XML output on the fly - it doesn't matter )
      tree.loadXML("some.jsp");
server side script must
 - output data as valid XML ( json, csv, jsarray )
 - sent correct headers ( Content-type:text/xml )