Hello,
I have two jsps, treeView.jsp calls tree.jsp using the tree.loadXMl(tree.jsp) function as shown below. The inner tree.jsp(also shown below) should load an xml using a stringBuffer. The stringBuffer is passed as a session attribute and it contains the xml contents as shown at the bottom of this message.
However I get the following errors: Error Type: LoadXML, Description: Incorrect XML and then Error Type: Data Structure, Description: XML reffers to not existing parent
Please let me know what might be wrong with my jsp files shown below. I have also pasted part of the xml which is generated.
Thanks.
Eric
---------------------------------------------------------------------------------
treeview.jsp
-----------------------------------------------------------------------------------
Title1
----------------------------------------------------------------------
tree.jsp
--------------------------------------------------------------------
<%@ page contentType=“text/xml” %>
<%@ taglib uri="/tags/struts-jstl" prefix=“c”%>
<%@ page import=“java.lang.String” %>
<%@ page import=“java.lang.StringBuffer” %>
<c:out value="${stringBuffer}" escapeXml=“true”/>
--------------------------------------------------------------------------------
xml printout (when tree.jsp is viewed separately)
------------------------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>