This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Java Products and Servers and the fly likes Creating BIRT report from the Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Creating BIRT report from the Servlet" Watch "Creating BIRT report from the Servlet" New topic
Author

Creating BIRT report from the Servlet

Rahul Ashar
Greenhorn

Joined: Apr 01, 2007
Posts: 20
I have a web application developed in Eclipse 3.5 , with SQL server as my database. Now the project requirement is to provide the reporting tool. I have updated eclipse with all the awailable BIRT plugins.
I have also downloaded a web application called 'birt', which runs correctly and shows the index page.
I have also downloaded the code from the eclipse.org for the servlet , however, the code is not giving expected output (described on the web page itself.)

However there is no source code added in the war file so I could not work out the BIRT runtime engine.
Could some one show me the sample code how one can pass parameters to the reports and how to run a report from the jsp page (from the client request.)
Nitin Jadhav
Greenhorn

Joined: Nov 02, 2009
Posts: 2
Its really easy
There are multiple options you can display reports. Most easy one is: Use birtViewer web app war file you downloaded from project site. You can use this war to display your reports by deploying this birt.war file in your server and using URL like

http://localhost:8080/birt-viewer/frameset?__report=/reports/my_report.rptdesign&other_param=value

You can provide various parameters to report webapp to customize look and feel of report.

Other good option is use birt JSP tags, for example:

<birt:viewer id="birtViewer" reportDesign="myreport.rptdesign" pattern="frameset" height="450" width="700" format="html" ></birt:viewer>

There is good link to read more:
http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.php



Rahul Ashar
Greenhorn

Joined: Apr 01, 2007
Posts: 20
Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating BIRT report from the Servlet