Skip to main content



      Home
Home » Archived » BIRT » Opening BIRT report through JSP/HTML
Opening BIRT report through JSP/HTML [message #363113] Tue, 10 June 2008 11:25 Go to next message
Eclipse UserFriend
I am very new to BIRT and hence would like to apologize in advance if my
query sounds too basic or has been beaten to death already!

I have managed to create reports using BIRT but now that I want to
integrate it with my J2EE application running on Weblogic 10.0 web
server,I am completely lost.

For starters,I want to be able to click on a link/button in my jsp/html
page and open a BIRT report in the browser.Could someone please tell me
how to go about this or atleast point me towards where I can find some
information?

For the time being,I am hopelessly stuck and would really appreciate some
guidance from any of you.

Many thanks.
Re: Opening BIRT report through JSP/HTML [message #363120 is a reply to message #363113] Tue, 10 June 2008 13:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Smitha,

Have you tried to deploy the web viewer example to WL?
Download the report engine package and deploy the webviewerexample
directory.

Jason

Smitha R wrote:
> I am very new to BIRT and hence would like to apologize in advance if my
> query sounds too basic or has been beaten to death already!
>
> I have managed to create reports using BIRT but now that I want to
> integrate it with my J2EE application running on Weblogic 10.0 web
> server,I am completely lost.
>
> For starters,I want to be able to click on a link/button in my jsp/html
> page and open a BIRT report in the browser.Could someone please tell me
> how to go about this or atleast point me towards where I can find some
> information?
>
> For the time being,I am hopelessly stuck and would really appreciate
> some guidance from any of you.
>
> Many thanks.
>
Re: Opening BIRT report through JSP/HTML [message #363123 is a reply to message #363120] Tue, 10 June 2008 13:17 Go to previous messageGo to next message
Eclipse UserFriend
Jason,

Thank you for responding.

I just deployed the example viewer to Weblogic and was able to see the
sample report.

Would it be too silly on my part to ask what next?

I mean for now,I just want to be able to click on a link or button in one
of the jsp files in my application to open a BIRT report.

Please point me in the right direction.

Many thanks.
Re: Opening BIRT report through JSP/HTML [message #363126 is a reply to message #363123] Tue, 10 June 2008 13:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Smitha,

Not silly at all. Take a look at this page:
http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.ph p

Essentially all you need to do is put your report somewhere and point
the viewer at it using the __report=c:/myreports/test.rptdesign url syntax.

Jason

Smitha R wrote:
> Jason,
>
> Thank you for responding.
>
> I just deployed the example viewer to Weblogic and was able to see the
> sample report.
>
> Would it be too silly on my part to ask what next?
>
> I mean for now,I just want to be able to click on a link or button in
> one of the jsp files in my application to open a BIRT report.
>
> Please point me in the right direction.
>
> Many thanks.
>
>
Re: Opening BIRT report through JSP/HTML [message #363136 is a reply to message #363126] Tue, 10 June 2008 16:28 Go to previous messageGo to next message
Eclipse UserFriend
Thanks much,Jason.

While trying to integrate the BIRT viewer within my deployed application,I
seem to be running into trouble.

When I start my Weblogic server,it gives me an error saying:

<Jun 10, 2008 3:19:28 PM CDT> <Error> <HTTP> <BEA-101163>
<Could not load user defined listener:
org.eclipse.birt.report.listener.ViewerServletContextListene r
java.lang.ClassNotFoundException:
org.eclipse.birt.report.listener.ViewerServlet ContextListener


I guess I am not sure about which of the files/folders of the
WebViewerExample I need to add on to my deployed application and where.I
already integrated the web.xml of my application as well as that of the
WebViewerExample.But I seem to be doing something wrong or missing
something out completely.
Re: Opening BIRT report through JSP/HTML [message #363139 is a reply to message #363136] Tue, 10 June 2008 19:17 Go to previous messageGo to next message
Eclipse UserFriend
Jason,I was able to solve this issue by trial and error and finally
getting my directory structure and web.xml integration right.

But I face a new problem now.

When I try to view the report by clicking on a link in my jsp,I get the
following error:

<Jun 10, 2008 6:05:36 PM CDT> <Error> <HTTP> <BEA-101214> <Included
resource or file "/myapp/webcontent/birt/pages/layout/RunFragment.jsp" not
found from requested resource "/myapp/run".>

Could you please tell me what this error means and how I could rectify it?

Many thanks.
Re: Opening BIRT report through JSP/HTML [message #363149 is a reply to message #363139] Wed, 11 June 2008 10:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Smitha,

Do you have a webcontent directory below your myapp directory?
The viewer servlet uses the webcontent directory to load JSP fragments.

BTW you could have deployed the BIRT viewer in its own context and then
just linked to it from your application.

Jason

Smitha R wrote:
> Jason,I was able to solve this issue by trial and error and finally
> getting my directory structure and web.xml integration right.
>
> But I face a new problem now.
>
> When I try to view the report by clicking on a link in my jsp,I get the
> following error:
>
> <Jun 10, 2008 6:05:36 PM CDT> <Error> <HTTP> <BEA-101214> <Included
> resource or file "/myapp/webcontent/birt/pages/layout/RunFragment.jsp"
> not found from requested resource "/myapp/run".>
>
> Could you please tell me what this error means and how I could rectify it?
>
> Many thanks.
>
Re: Opening BIRT report through JSP/HTML [message #363155 is a reply to message #363149] Wed, 11 June 2008 10:49 Go to previous messageGo to next message
Eclipse UserFriend
I do have a webcontent folder in my webapp folder but for some reason this
error continues to show up.

I just wanted to consolidate everything in one place and hence the whole
process of integration.Since I am already so close to getting it done,I am
persisting with it!

-smitha.
Re: Opening BIRT report through JSP/HTML [message #363159 is a reply to message #363155] Wed, 11 June 2008 11:20 Go to previous messageGo to next message
Eclipse UserFriend
Jason,it worked!!I deleted the webcontent folder and copied it afresh and
it worked!!

Thank you so much for your help.

I am going to proceed next with the Report Engine api and writing my own
servlets.
Re: Opening BIRT report through JSP/HTML [message #363163 is a reply to message #363159] Wed, 11 June 2008 11:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Smitha,

Glad to hear you got it to work. You may want to look at modifying the
existing Viewer source, unless you want to reinvent the wheel on page
navigation, exports, tocs, etc.

Jason

Smitha R wrote:
> Jason,it worked!!I deleted the webcontent folder and copied it afresh
> and it worked!!
>
> Thank you so much for your help.
>
> I am going to proceed next with the Report Engine api and writing my own
> servlets.
>
Re: Opening BIRT report through JSP/HTML [message #363198 is a reply to message #363163] Thu, 12 June 2008 13:06 Go to previous messageGo to next message
Eclipse UserFriend
Jason,

For now,I have modified the WebReport.java and BirtEngine.java to be able
to integrate it with myapp and be able to run the report as a part of
myapp.

I am trying to see if I can make changes to the way the report is being
handled.For example,is there some way to modify the report through the jsp
or java class that calls it instead of having to go back to the report
designer to make changes?
Re: Opening BIRT report through JSP/HTML [message #363201 is a reply to message #363198] Thu, 12 June 2008 13:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Smitha,

Yes, you can use the design engine API. I am doing a webinar on the
DEAPI tomorrow. If you are interested check out this link.

http://www.birt-exchange.com/modules/news-events/webinar.php ?cid=5&lid=372

It is suppose to last approx 30 Minutes.

Jason

Smitha R wrote:
> Jason,
>
> For now,I have modified the WebReport.java and BirtEngine.java to be
> able to integrate it with myapp and be able to run the report as a part
> of myapp.
>
> I am trying to see if I can make changes to the way the report is being
> handled.For example,is there some way to modify the report through the
> jsp or java class that calls it instead of having to go back to the
> report designer to make changes?
>
Re: Opening BIRT report through JSP/HTML [message #363203 is a reply to message #363201] Thu, 12 June 2008 14:21 Go to previous messageGo to next message
Eclipse UserFriend
Excellent!Just what I needed!

Thanks so much Jason..I will be there :)
Re: Opening BIRT report through JSP/HTML [message #363284 is a reply to message #363201] Tue, 17 June 2008 13:43 Go to previous messageGo to next message
Eclipse UserFriend
Jason,I have a question regarding how to manipulate reports from java code
using the DE API.

I have created a report already and I want to make changes to the way it
looks as well as add some parameters to it but I want to do all this from
my java class.

I was wondering if :

1] I could get a handle to this report and be able to change it in my
class.

2] I could manipulate the report without having to specify/hardcode the
jdbc datasource in my java class.

Your input will be highly appreciated as always.

Many thanks.
Re: Opening BIRT report through JSP/HTML [message #363285 is a reply to message #363284] Tue, 17 June 2008 13:50 Go to previous messageGo to next message
Eclipse UserFriend
Jason,I am sorry but I guess I figured out how to do part [1] of my
question.

ReportDesignHandle design =
session.openDesign("/Reports/sample.rptdesign" );

Duh.

But could you please throw some light on part [2]?

Many thanks.
Re: Opening BIRT report through JSP/HTML [message #363303 is a reply to message #363285] Tue, 17 June 2008 18:50 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Smitha,

If I understand your question correctly, you do not have to specify the
driver, if it is already in the report. Just open the report that
already contains the connection information and mod away :>

Jason

Smitha R wrote:
> Jason,I am sorry but I guess I figured out how to do part [1] of my
> question.
>
> ReportDesignHandle design =
> session.openDesign("/Reports/sample.rptdesign" );
>
> Duh.
>
> But could you please throw some light on part [2]?
>
> Many thanks.
>
Previous Topic:Word emitter grid formatting problem
Next Topic:Evaluating expression in custom report item
Goto Forum:
  


Current Time: Wed Sep 24 18:32:44 EDT 2025

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

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

Back to the top