Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » How integrate Birt report with web application
How integrate Birt report with web application [message #523370] Fri, 26 March 2010 08:35 Go to next message
Stefano  is currently offline Stefano Friend
Messages: 31
Registered: February 2010
Member
How can I integrate a birt report project in a j2ee web application ?
It is possible to insert a report in one or more web page of a java application ?
Re: How integrate Birt report with web application [message #523717 is a reply to message #523370] Sun, 28 March 2010 19:52 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Stefano,

This is possible. You can call the engines in a servlet
http://wiki.eclipse.org/Servlet_Example_%28BIRT%29_2.1

Or you can use the viewer or tag libraries:
http://www.eclipse.org/birt/phoenix/deploy/viewerSetup.php
http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.ph p

Jason

Stefano wrote:
> How can I integrate a birt report project in a j2ee web application ?
> It is possible to insert a report in one or more web page of a java
> application ?
Re: How integrate Birt report with web application [message #523864 is a reply to message #523370] Mon, 29 March 2010 16:21 Go to previous messageGo to next message
Scott Rosenbaum is currently offline Scott RosenbaumFriend
Messages: 425
Registered: July 2009
Senior Member
It is relatively easy to integrate BIRT into a Web App. What type of web
application are you using (Struts, servlets, JSF...)

Scott Rosenbaum


> How can I integrate a birt report project in a j2ee web application ?
> It is possible to insert a report in one or more web page of a java
> application ?
>
Scott Rosenbaum
Innovent Solutions, BIRT PMC
Re: How integrate Birt report with web application [message #530384 is a reply to message #523864] Thu, 29 April 2010 14:33 Go to previous messageGo to next message
Stefano  is currently offline Stefano Friend
Messages: 31
Registered: February 2010
Member
I would like to integrate one of my BIRT report in a JSP....
Re: How integrate Birt report with web application [message #530439 is a reply to message #530384] Thu, 29 April 2010 15:37 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

On 4/29/2010 10:33 AM, Stefano wrote:
> I would like to integrate one of my BIRT report in a JSP....
Have you looked at using the JSP Tag library?

http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.ph p#tags

Jason
Re: How integrate Birt report with web application [message #537639 is a reply to message #523370] Thu, 03 June 2010 08:39 Go to previous messageGo to next message
Stefano  is currently offline Stefano Friend
Messages: 31
Registered: February 2010
Member
Ok I follow the Viewer tag library, so I add to my working web application a birt.jsp to try to use the Birt Viewer.

When I run the jsp , display HTTP Status 404, The requested resource (/Test_WebApp/frameset) is not available.

So it don't see my report that it have to display in the viewer.

In the jsp Body I use:

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

test_fid.rptdesign file stay in WebContent directory of the web application.

How can I resolve the problem ?
Re: How integrate Birt report with web application [message #537777 is a reply to message #537639] Thu, 03 June 2010 15:16 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Did you add the entire BIRT Viewer to your application?

On 6/3/2010 4:39 AM, Stefano wrote:
> Ok I follow the Viewer tag library, so I add to my working web
> application a birt.jsp to try to use the Birt Viewer.
>
> When I run the jsp , display HTTP Status 404, The requested resource
> (/Test_WebApp/frameset) is not available.
>
> So it don't see my report that it have to display in the viewer.
>
> In the jsp Body I use:
>
> <birt:viewer id="birtViewer" reportDesign="test_fid.rptdesign"
> pattern="frameset"
> height="450"
> width="700" format="html"
> ></birt:viewer>
>
> test_fid.rptdesign file stay in WebContent directory of the web
> application.
>
> How can I resolve the problem ?
Re: How integrate Birt report with web application [message #537784 is a reply to message #537777] Thu, 03 June 2010 15:56 Go to previous messageGo to next message
Stefano  is currently offline Stefano Friend
Messages: 31
Registered: February 2010
Member
I add:
- birt.ltd in WEB-INF/ltds
and follow jars in WEB-INF/lib:
- coreapi.jar
-modelapi.jar
-viewerservlets.jar
-engineapi.jar
-com.ibm.icu....jar


Jason Weathersby wrote on Thu, 03 June 2010 11:16
Did you add the entire BIRT Viewer to your application?


Re: How integrate Birt report with web application [message #537800 is a reply to message #537784] Thu, 03 June 2010 16:37 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Stefan,

You have to have the full viewer installed on the app server either in
your context or another context. In your case it looks like you added
the tag library but did not specify a baseURL attribute to an existing
BIRT Viewer on the same appserver. Take a look at this:

http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.ph p#tags

Jason

On 6/3/2010 11:56 AM, Stefano wrote:
> I add:
> - birt.ltd in WEB-INF/ltds
> and follow jars in WEB-INF/lib:
> - coreapi.jar
> -modelapi.jar
> -viewerservlets.jar
> -engineapi.jar
> -com.ibm.icu....jar
>
>
> Jason Weathersby wrote on Thu, 03 June 2010 11:16
>> Did you add the entire BIRT Viewer to your application?
>
>
Re: How integrate Birt report with web application [message #538007 is a reply to message #537800] Fri, 04 June 2010 13:33 Go to previous messageGo to next message
Stefano  is currently offline Stefano Friend
Messages: 31
Registered: February 2010
Member
ok, so in <birt:viewer> tag I add baseURL properties, but what path must I use ? relative path ? Can I have an example ?
The birt.war is deployed on the same JBoss application server of the web application.

Jason Weathersby wrote on Thu, 03 June 2010 12:37
Stefan,

You have to have the full viewer installed on the app server either in
your context or another context. In your case it looks like you added
the tag library but did not specify a baseURL attribute to an existing
BIRT Viewer on the same appserver. Take a look at this:

http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.ph p#tags

Jason

On 6/3/2010 11:56 AM, Stefano wrote:
> I add:
> - birt.ltd in WEB-INF/ltds
> and follow jars in WEB-INF/lib:
> - coreapi.jar
> -modelapi.jar
> -viewerservlets.jar
> -engineapi.jar
> -com.ibm.icu....jar
>
>
> Jason Weathersby wrote on Thu, 03 June 2010 11:16
>> Did you add the entire BIRT Viewer to your application?
>
>

Re: How integrate Birt report with web application [message #538031 is a reply to message #538007] Fri, 04 June 2010 14:37 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

It is a relative path. You are specifying the context of the viewer.
For example:

<birt:viewer id="1" baseURL="/WebViewer"

height="600"

width="800"

reportDesign="TopNPercent.rptdesign"></birt:viewer>


Keep in mind also that the report design is in relation to the viewer
not your app. So in the above example TopNPercent.rptdesign is in the
webcontent directory of the depolyed viewer in the /WebViewer context.

Jason

On 6/4/2010 9:33 AM, Stefano wrote:
> ok, so in <birt:viewer> tag I add baseURL properties, but what path must
> I use ? relative path ? Can I have an example ?
> The birt.war is deployed on the same JBoss application server of the web
> application.
>
> Jason Weathersby wrote on Thu, 03 June 2010 12:37
>> Stefan,
>>
>> You have to have the full viewer installed on the app server either in
>> your context or another context. In your case it looks like you added
>> the tag library but did not specify a baseURL attribute to an existing
>> BIRT Viewer on the same appserver. Take a look at this:
>>
>> http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.ph p#tags
>>
>> Jason
>>
>> On 6/3/2010 11:56 AM, Stefano wrote:
>> > I add:
>> > - birt.ltd in WEB-INF/ltds
>> > and follow jars in WEB-INF/lib:
>> > - coreapi.jar
>> > -modelapi.jar
>> > -viewerservlets.jar
>> > -engineapi.jar
>> > -com.ibm.icu....jar
>> >
>> >
>> > Jason Weathersby wrote on Thu, 03 June 2010 11:16
>> >> Did you add the entire BIRT Viewer to your application?
>> >
>> >
>
>
Re: How integrate Birt report with web application [message #538037 is a reply to message #538031] Fri, 04 June 2010 15:31 Go to previous message
Stefano  is currently offline Stefano Friend
Messages: 31
Registered: February 2010
Member
Thank you very much, now it work...

Jason Weathersby wrote on Fri, 04 June 2010 10:37
It is a relative path. You are specifying the context of the viewer.
For example:

<birt:viewer id="1" baseURL="/WebViewer"

height="600"

width="800"

reportDesign="TopNPercent.rptdesign"></birt:viewer>


Keep in mind also that the report design is in relation to the viewer
not your app. So in the above example TopNPercent.rptdesign is in the
webcontent directory of the depolyed viewer in the /WebViewer context.

Jason

On 6/4/2010 9:33 AM, Stefano wrote:
> ok, so in <birt:viewer> tag I add baseURL properties, but what path must
> I use ? relative path ? Can I have an example ?
> The birt.war is deployed on the same JBoss application server of the web
> application.
>
> Jason Weathersby wrote on Thu, 03 June 2010 12:37
>> Stefan,
>>
>> You have to have the full viewer installed on the app server either in
>> your context or another context. In your case it looks like you added
>> the tag library but did not specify a baseURL attribute to an existing
>> BIRT Viewer on the same appserver. Take a look at this:
>>
>> http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.ph p#tags
>>
>> Jason
>>
>> On 6/3/2010 11:56 AM, Stefano wrote:
>> > I add:
>> > - birt.ltd in WEB-INF/ltds
>> > and follow jars in WEB-INF/lib:
>> > - coreapi.jar
>> > -modelapi.jar
>> > -viewerservlets.jar
>> > -engineapi.jar
>> > -com.ibm.icu....jar
>> >
>> >
>> > Jason Weathersby wrote on Thu, 03 June 2010 11:16
>> >> Did you add the entire BIRT Viewer to your application?
>> >
>> >
>
>

Previous Topic:Cannot open the connection for the driver
Next Topic:BIRT 2.5.1 incorrect xtab header
Goto Forum:
  


Current Time: Thu Apr 25 01:24:08 GMT 2024

Powered by FUDForum. Page generated in 0.05541 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top