Hello,<br />
<br />
<br />
I'm working on a web application that will use birt for report generation. Right now the birt web viewer and my web application are deployed in separate contexts and what I want to do is forward a request from one of my servlets to Birt. Everything works fine if I also make a custom servlet to handle the generation on the birt side but if I use "frameset" I get this error:<br />
<br />
XML Parsing Error: no element found<br />
Location: <a class='bbc_url' href='
http://localhost:8080/dcm/letters/generate?user=root&caseid=2020090325324'>http://localhost:8080/dcm/letters/generate?user=root&caseid=2020090325324</a><br />
Line Number 1, Column 1:<br />
<br />
<br />
here is the code that makes the forward:<br />
<br />
ServletContext sc = request.getSession().getServletContext().getContext("/birt"); <br />
if (sc != null) {<br />
RequestDispatcher rd = sc.getRequestDispatcher("/frameset");<br />
// request.setAttribute("data", reportData); <br />
//TODO this warper might be moved<br />
MyHttpRequestWrapper w = new MyHttpRequestWrapper(request);<br />
<br />
String contextKey = "appContextKey"; <br />
request.setAttribute( "AppContextKey",contextKey );<br />
HashMap appContext = new HashMap( );<br />
<br />
String xmlData = reportData;<br />
<br />
ByteArrayInputStream bis = new ByteArrayInputStream(xmlData.getBytes("UTF8")); <br />
appContext.put("org.eclipse.birt.report.data.oda.xml.inputStream", bis); <br />
appContext.put("org.eclipse.birt.report.data.oda.xml.closeInputStream", new Boolean(true)); <br />
request.setAttribute( "AppContextValue",appContext );<br />
<br />
w.setParameter("__report", reportName);<br />
if (rd != null) rd.forward(w, response);<br />
}<br />
<br />
<br />
reportData is a string containing valid xml data that I use as a data source. Can anybody help ? ... this is getting really frustrating because I get no other error messages anywhere else to give me a lead on where to start.<br />
<br />
<br />
thanks