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?



 

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 )