• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Creating BIRT report from the Servlet

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.)
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you
 
We don't have time for this. We've gotta save the moon! Or check this out:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic