Home
Analytics
BIRT Integration in Dynamic Web Project jsp page
Michele Feliciani
<p>Hi,</p>
<p>I'm developing a Dynamic Web Project in Eclipse, and I recently downloaded Actuate BIRT Designer Professional 4.4 to add dashboard to my JSP pages. I also installed in my Tomcat 7 the BIRT Runtime 4.5 to view reports in my applications. The Runtime works well, so I can see demo page and reports. I also added</p>
<p><jsp-config><br>
<taglib><br>
<taglib-uri>/birt.tld</taglib-uri><br>
<taglib-location>/WEB-INF/tlds/birt.tld</taglib-location><br>
</taglib><br>
</jsp-config></p>
<p>in my web.xml (see attached
Find more posts tagged with
Comments
Clement Wong
<p>The JSP example code on <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>appears
to be missing a viewer tag attribute:</p>
<p> </p>
<p>Try adding the baseURL="/birt" viewer tag attribute in the JSP page:</p>
<p> </p>
<p style="margin-left:40px;"><span style="font-family:'courier new', courier, monospace;"><birt:viewer id="birtViewer" reportDesign="test.rptdesign"<br>
pattern="frameset"<br>
height="450"<br>
width="700"<br>
format="html"</span></p>
<p style="margin-left:40px;"><span style="font-family:'courier new', courier, monospace;"><span style="color:rgb(178,34,34);"><strong>baseURL="/birt"</strong></span><br>
></birt:viewer></span></p>
<p> </p>
<p>With that addition, the example will work. Please note as stated on the web page that "using this approach reports are referenced in relation to the BIRT Sample Viewer not the new context."</p>
<p> </p>
<p>I'll request to have that webpage updated accordingly.</p>
Michele Feliciani
<p>Thanks Clement, now it works in my local machine.</p>
<p>I have deployed my project in my production server, and I see my website instead of my report!</p>
<p>It seems that it doesn't find my report as it does locally, so it shows my homepage in the frame dedicated to the report.</p>
<p>What should I fix to have the same behaviour?</p>
<p>Greetings,</p>
<p>Michele.</p>
Michele Feliciani
<p>Ok I solved...thanks Clement!</p>
Michele Feliciani
<p>Hi Clement,</p>
<p>I have another question about this integration. How can I deploy in the same page a dashboard instead a simple report?</p>
<p>I created a dashboard but I can't see it in my page.</p>
<p>Thanks a lot for your support.</p>
<p>Greetings,</p>
<p>Michele.</p>
Clement Wong
<p>Since you are using commercial BIRT, you should use the JavaScript API (JSAPI).</p>
<p> </p>
<p>More info about JSAPI @ <a data-ipb='nomediaparse' href='
http://developer.actuate.com/be/documentation/ihub31-dev/AIG-main/index.html#page/aig/part9.html'>http://developer.actuate.com/be/documentation/ihub31-dev/AIG-main/index.html#page/aig/part9.html</a></p>
;
<p> </p>
<p>BTW, we also have a REST API available too. There are interactive docs available (replace YourServer with your iHub server name) @ <a data-ipb='nomediaparse' href='
http://YOURiHub:5000/ihub/v1/ihubrestdocs'>http://YOURiHub:5000/ihub/v1/ihubrestdocs</a><br><br>
;
There is a reference Implementation using both REST API and JSAPI @ <a data-ipb='nomediaparse' href='
https://github.com/ActuateBIRT/AviatioExample'>https://github.com/ActuateBIRT/AviatioExample</a><br><br>
;
And you can see it in action @ <a data-ipb='nomediaparse' href='
http://aviatioexample.actuate.com'>http://aviatioexample.actuate.com</a><br>
;
</p>
Xiaoquan Wu
<p>Can you tell me,How did you integrate BIRT into your Projects?how to download BIRT code?</p>
Clement Wong
<p>Does this page (<a data-ipb='nomediaparse' href='
http://developer.actuate.com/deployment-center/integrating-birt-into-applications/'>http://developer.actuate.com/deployment-center/integrating-birt-into-applications/</a>)
for Integrating BIRT into Applications help? </p>
tlima
<p>I have the same problem about frame not avalaible, can anybody share a simple example project to help me???<br>
<br>
thanks<br>
TLima</p>
Clement Wong
<p>
@TLima
,</p>
<p> </p>
<p>It looks like your trying to use the Viewer Tag library like the example @ <a data-ipb='nomediaparse' href='
http://www.eclipse.org/birt/documentation/integrating/viewer-usage.php?'>http://www.eclipse.org/birt/documentation/integrating/viewer-usage.php?</a></p>
;
<p> </p>
<p>Where did you deploy the JSP file? Did you have a separate web appcontext, or is this within the BIRT context?</p>
<p> </p>
<p> </p>
<p>For example, if you download BIRT Engine 4.5.0, and deploy it to your app server. Then add the JSP (change the .rptdesign name to test.rptdesign) to the root of /birt app context path. You should be able to see the test JSP page that uses the Viewer Tag library from your browser.</p>