Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating BIRT report from the Servlet

 
Rahul Ashar
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic