Embedding BIRT report in jsp

hallj05
edited February 11, 2022 in Analytics #1
<p>Hey,</p>
<p> </p>
<p>We are using Open Source BIRT 4.2.2.</p>
<p> </p>
<p>We have an application running on JBOSS.</p>
<p> </p>
<p>Is it possible to embed the BIRT reports into a jsp page?</p>
<p> </p>
<p>I've seen this being done using a viewer tag library, but I can't seem to find this when searching online to download. Is this still available to download and if not then how could we embed the BIRT report onto a jsp page.</p>
<p> </p>
<p>We would like to have the whole BIRT viewer being embedded.</p>
<p> </p>
<p>Here is where I saw the viewer tag library being mentioned and it seems to be exactly what we would need.</p>
<p><a data-ipb='nomediaparse' href='http://developer.actuate.com/community/forum/index.php?/topic/29404-birt-viewier-inside-integration-web-application/'>http://developer.actuate.com/community/forum/index.php?/topic/29404-birt-viewier-inside-integration-web-application/</a></p&gt;
<p> </p>
<p>Currently we are deploying BIRT as a separate app from our main application and when needing to access a BIRT report we are passing a url to open the report. Which this opens in a new IE window. We want to be able to have the report display on the window in the main application.</p>
<p> </p>
<p>Thanks for any help!</p>

Comments

  • <p>Take a look at this documentation in integrating BIRT into JSP: <a data-ipb='nomediaparse' href='http://developer.actuate.com/deployment-center/integrating-birt-into-applications/birt-with-jsp/'>http://developer.actuate.com/deployment-center/integrating-birt-into-applications/birt-with-jsp/</a></p&gt;
    <p> </p>
    <p>The tag library can be found with the Sample Viewer. The Sample Viewer is bundled with the BIRT runtime download.</p>
    Warning No formatter is installed for the format ipb
  • <p>Thanks,</p>
    <p> </p>
    <p>Also is there a way to combine the BIRT war into our applications war?</p>
    <p> </p>
    <p>So that we don't have to have a separate war for BIRT?</p>
    <p> </p>
    <p>This way we would only have one war (BIRT and our application) and we would be able to generate BIRT reports in our application with the BIRT viewer.</p>
  • <p>I believe you should be able to use the expanded version of the BIRT viewer included with the BIRT runtime download by merging the BIRT Viewer Example into your application.</p>
    <p> </p>
    <p>Then you should be able to build your applications war with the viewer included.</p>
    Warning No formatter is installed for the format ipb
  • <p>Sounds good, we will try that and see if it works. It might be a little while before we get around to doing it so if you find any more information on it just let me know.</p>
    <p> </p>
    <p>Also we are currently using BIRT 4.2.2 and we are thinking of upgrading that to a newer version while we are making all these changes. Is there a change doc on what was changed with each new version? Since I see that BIRT 4.5 is the newest version which I'm assuming would be the best one to update to.</p>
    <p> </p>
    <p>Random question which is sorta BIRT related. I see in the tag library that the BIRT viewer can be put inside of an IFrame. Is it possible to put the viewer into a Dojo JS ContentPane object on a page? I'd assume this would use the href but I've not used any Dojo before. Just wondering if you'd have any knowledge on if that would work.</p>
    <p> </p>
    <p>Thanks for all the help!</p>
  • <p>You will need to look at the release notes for the versions between 4.2.2 and 4.5.0 for full details on changes. As far as I know there are not any major feature changes, mostly just bug fixes.</p>
    <p> </p>
    <p>For reference, here are the release details for 4.5: <a data-ipb='nomediaparse' href='https://projects.eclipse.org/projects/birt/releases/4.5.0'>https://projects.eclipse.org/projects/birt/releases/4.5.0</a></p&gt;
    <p> </p>
    <p>Regarding your Dojo question, I believe it should be possible. However, I have not worked with Dojo before so I do not have any specifics without doing some research and testing.</p>
    Warning No formatter is installed for the format ipb
  • <p>So I've tried to merge the BIRT Viewer Example with our web app doing something like <a data-ipb='nomediaparse' href='http://www.ibm.com/developerworks/library/ba-birt-viewer-java-webapps/index.html#download'>http://www.ibm.com/developerworks/library/ba-birt-viewer-java-webapps/index.html#download</a></p&gt;
    <p> </p>
    <p>This is without Maven so I skipped those few steps.</p>
    <p> </p>
    <p>We are using Tomcat, Google Chrome, and BIRT 4.2.2.</p>
    <p> </p>
    <p>Doing it like it's listed in the IBM page using the 4.2.2 runtime download I can get it to attempt to load a report. But it gives me something like the attached image.</p>
    <p> </p>
    <p>In our logs we are getting messages like the below for all the files in the birt-runtime-4_2_2\WebViewerExample\webcontent folder</p>
    <p>No mapping found for HTTP request with URI</p>
    <p> </p>
    <p>We also aren't using an web.xml file for our app so I just put the web.xml file from the BIRT runtime.</p>
    <p> </p>
    <p>Any ideas on to why it's not working correctly? It looks like it can't find all the files that it needs but I've done it just like they did in the link.</p>
  • <p>Can you provide the full error messages you are getting?</p>
    <p>Can you provide a screenshot that displays the folder hierarchy of your web application after adding the web viewer files?</p>
    Warning No formatter is installed for the format ipb
  • <p>I've attached the error messages in a text file and the folder hierarchy in an image.</p>
    <p> </p>
    <p>Note: that I had to rename some things. I changed our software name to software.</p>
  • <p>I'm thinking that this has something to do with us using Spring. I don't know much about Spring so there is probably some extra steps that I must do because of that.</p>
  • hallj05
    edited November 23, 2015 #11
    <p>Alright, I got the file path issue fixed. Now it loads most the page and the parameter window pops up but the report doesn't load.</p>
    <p> </p>
    <p>The url that I'm using to test with is</p>
    <p>localhost:8080/Software/frameset?__report=Sample.rptdesign</p>
    <p> </p>
    <p> </p>
    <p>Update 11/23</p>
    <p>I figured out that this is related to our X-Frame-Options setting so I've created a new topic for that:</p>
    <p><a data-ipb='nomediaparse' href='http://developer.actuate.com/community/forum/index.php?/topic/37633-viewer-tag-library-with-x-frame-options-set-to-deny/'>http://developer.actuate.com/community/forum/index.php?/topic/37633-viewer-tag-library-with-x-frame-options-set-to-deny/</a></p&gt;
  • Where dit this topic go to what you refer please?