Hi All !!
 
I am quite new to DOM4j . I am using Orbeon X-forms.The application, i have created on OPS, submits the xml document to  a jsp.Now , i am trying to retrieve the submitted xml document in the jsp using DOM4j. My jsp contains the following code segment :

<[EMAIL PROTECTED] import="org.dom4j.io.SAXReader"%>

<[EMAIL PROTECTED] import="org.dom4j.Document"%>

<%SAXReader xmlReader=new SAXReader();

Document document=xmlReader.read(request.getInputStream());%>

When i try to run my application on OPS, i get an error like :

org.dom4j.DocumentException: Error on line 1 of document  : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.
	org.dom4j.io.SAXReader.read(SAXReader.java:355)
	org.dom4j.io.SAXReader.read(SAXReader.java:261)
	org.apache.jsp.xml._1_jsp._jspService(_1_jsp.java:78)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
I have seen that this problem has already been discussed in one of the earlier threads, but could anyone please elaborate on this.
Thanks in advance!!
Regards,
Garima
 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to