Categories | Question details Back To List | ||
dynamic html loading issue I have a jsp called partyGrid.jsp which has the following lines of code: <DIV id="LoadingParties"></DIV> <% partyGridjspLog.info("inside partyGrid.jsp : starts " + new java.util.Date()); %> <script> tree=new dhtmlXTreeObject("LoadingParties","100%","100%",0); tree.setImagePath("img/"); tree.setIconSize(16,16); tree.enableDragAndDrop(0); tree.setXMLAutoLoading('<%=appContext%>/dispatcherServlet/partylist.html'); tree.loadXMLString('<%=xmlString%>'); </script> I have a controller which generates the xml string appropriately and sends the request to the partygrid.jsp. The first time tree shows up correctly without any issues, but now i want to load the child nodes dynamically when i click on each of the nodes. when i click on one of the nodes the request goes to the same controller which in turn sends the request back to the partyGrid.jsp. but this time we get some issues with respect to incorrect xml, after putting alerts in the getXMLTopNode function we found out that xmlString variable in getXMLTopNode function is assigned the entire html source instead of the xml string returned from the servlet. Can you please tell me know how it can be resolved Answer posted on Sep 24, 2007 10:57 The component expects that server response will be an XML , not HTML container with XML inside, why you output it in such form instead of pure XML ? |