问题
I am completely new about BIRT Report. The report content's fetching the data from MySQL DB then generated '.rptdesign' file. I am able to generate '.rptdesign' file. Now I need to use '.rptdesign' file in JSP file. How to configure the '.rptdesign' in JSP and how to display report in JSP file.
回答1:
Assuming you have the BIRT runtime setup on a server somewhere you could use an iFrame to render the report within a JSP.
<iframe name="myReport" src="http://localhost:8080/birt/run?__report=test.rptdesign&sample=my+parameter" />
If you don't have the BIRT runtime setup yet, this is a recent blog explaining steps you could take to get it set up.
Hope this helps
来源:https://stackoverflow.com/questions/28578243/how-to-assign-the-birt-report-rptdesign-file-to-jsp