Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Adding a Chart to a JSP Page
Adding a Chart to a JSP Page [message #57667] Wed, 13 July 2005 17:29 Go to next message
Eclipse UserFriend
Originally posted by: attley.gmail.com

I understand that you can preview BIRT reports and charts in a browser via
the BIRT Viewer application. I have done the report tutorial but cannot
find anything which says that you can integrate a chart into an existing
JSP page. Is it possible to create a chart and have it occupy say an HTML
table data cell on a JSP page?

Thanks in advance,
S. Attley
Re: Adding a Chart to a JSP Page [message #57752 is a reply to message #57667] Wed, 13 July 2005 19:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.none.com

Hi Simon,

Yes, of course. The BIRT Chart engine can be used as a standalone component
to generate charts. There is a Chart Runtime package you can get on the BIRT
download site, you only need to include the lib jars in your Java server
application and then you will be able to create and generate charts from
your java code and output them in one of the available formats, probably PNG
would be appropriate in that case.

Thanks,

David


"Simon Attley" <attley@gmail.com> wrote in message
news:2e1ca6cfe0d9202d495a76939f48b820$1@www.eclipse.org...
>I understand that you can preview BIRT reports and charts in a browser via
>the BIRT Viewer application. I have done the report tutorial but cannot
>find anything which says that you can integrate a chart into an existing
>JSP page. Is it possible to create a chart and have it occupy say an HTML
>table data cell on a JSP page?
>
> Thanks in advance,
> S. Attley
>
Re: Adding a Chart to a JSP Page [message #57777 is a reply to message #57752] Wed, 13 July 2005 19:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: attley.gmail.com

David,
Thanks for your prompt response. If you don't mind I have a few other
questions. I initially downloaded BIRT Report Framework, GEF, and EMF. My
intention was to be able to create charts in my web app (ie within a jsp
page) and in the future to do full blown reports. It seems as though all
the chart engine is part of the framework. If so do I install all of the
framework jars into my web app?
Also are there any tutorials on using the chart engine to build and
generate charts within my app, as you described, could you point me to
them?

Lastly, I am confused as to deploying a report/chart versus my deployed
web app. I can deploy my web app and have the BIRT report/chart as part of
that deploy, is this correct?

Thank you again for your advice, it is greatly appreciated.

Simon
Re: Adding a Chart to a JSP Page [message #57827 is a reply to message #57777] Wed, 13 July 2005 20:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.none.com

Simon,

On the BIRT download page http://download.eclipse.org/birt/downloads/ you
will find several downloads:

- The Report Framework, which is to be used inside Eclipse. I understand
that's the one you have
- The Runtime package: that's the one you need for your web app (or any java
application in general) if you want to use the report engine and
create/generate reports with or without charts (note that the engine.jar in
the chart directory is not right, you will need to get it from the chart
engine download, there is a bugzilla entry for that)
- The Chart Engine: this is all you need in your web app if you only do
charting without reports

So for now, you should get the Chart Engine. In the future, for reports, you
will need the runtime package.

Please check the FAQ for some examples of Chart API use:
http://www.eclipse.org/birt/wiki/index.php?n=FAQ.Charts. We are now adding
more examples in a new plugin for the 1.0.1 release:
org.eclipse.birt.chart.examples. You should be able to get it in 1.0.1 M1 or
otherwise from the CVS source or daily build.

Regarding the deployment, I am not sure I understand exactly what you mean.
All I can say is that you will deploy the BIRT jars together with your web
app. If you want to deploy a report design or a chart xml model later on, I
guess you can simply for instance upload them in a directory of your web
server and have your app server access them through url to read them and
generate the output.

Thanks,

David




"Simon Attley" <attley@gmail.com> wrote in message
news:e08ae89eb919175e9357a7413f4178c5$1@www.eclipse.org...
> David,
> Thanks for your prompt response. If you don't mind I have a few other
> questions. I initially downloaded BIRT Report Framework, GEF, and EMF. My
> intention was to be able to create charts in my web app (ie within a jsp
> page) and in the future to do full blown reports. It seems as though all
> the chart engine is part of the framework. If so do I install all of the
> framework jars into my web app?
> Also are there any tutorials on using the chart engine to build and
> generate charts within my app, as you described, could you point me to
> them?
>
> Lastly, I am confused as to deploying a report/chart versus my deployed
> web app. I can deploy my web app and have the BIRT report/chart as part of
> that deploy, is this correct?
>
> Thank you again for your advice, it is greatly appreciated.
>
> Simon
>
Re: Adding a Chart to a JSP Page [message #57874 is a reply to message #57827] Wed, 13 July 2005 21:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: attley.gmail.com

Hi David,
Again, thank you. You have answered all of my questions. I was hoping to
be able to use the Chart designer (ie double click the Chart icon in the
Palette view) within Eclipse to be able to design my chart, if I go this
way do I have to have the chart within a .rpt file? If yes, can I embed
this file within the .jsp page or link to it via an IFRAME or something.
Sorry for the plethora of questions but I am excited at the thought of
being able to show some data in a chart on my webpage and am hoping BIRT
is the answer.

Simon
Re: Adding a Chart to a JSP Page [message #58043 is a reply to message #57874] Thu, 14 July 2005 06:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.none.com

Simon,

If you use the Chart designer within Eclipse, the chart xml will be embedded
inside the report design file. You can certainly render the report on your
web page, the RunReport sample application
( http://www.eclipse.org/birt/index.php?page=deploy/engine.htm l#jump_10)
shows how to generate an html file from a rptdesign file.

Thanks,

David


"Simon Attley" <attley@gmail.com> wrote in message
news:b598432a0f9fd780da6d3c8a5da98d43$1@www.eclipse.org...
> Hi David,
> Again, thank you. You have answered all of my questions. I was hoping to
> be able to use the Chart designer (ie double click the Chart icon in the
> Palette view) within Eclipse to be able to design my chart, if I go this
> way do I have to have the chart within a .rpt file? If yes, can I embed
> this file within the .jsp page or link to it via an IFRAME or something.
> Sorry for the plethora of questions but I am excited at the thought of
> being able to show some data in a chart on my webpage and am hoping BIRT
> is the answer.
>
> Simon
>
Re: Adding a Chart to a JSP Page [message #58441 is a reply to message #58043] Thu, 14 July 2005 18:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: attley.gmail.com

Hi David,
After much work and the moving around of many jar files, I have my chart
formatting correctly and querying from my Oracle db. In my web app I have
a saved rptdesign file called new_report.rptdesign. When I do a 'Preview
as HTML' from within eclipse it works fine. However when I try to view the
file in a browser (Firefox) I get the following error:

Error 500: org.eclipse.birt.report.data.oda.jdbc

Below is the link to my report file:

http://localhost:9080/tg/faces/run?__report=new_report.rptde sign&__locale=null&__format=html&__usetestconfig =true

Can you shed any light on this?

Kind regards,
Simon Attley
Re: Adding a Chart to a JSP Page [message #58476 is a reply to message #58441] Thu, 14 July 2005 22:08 Go to previous messageGo to next message
David Michonneau is currently offline David MichonneauFriend
Messages: 1145
Registered: July 2009
Senior Member
Hi Simon,

I guess you haven't copied your oracle driver to the birt viewer directory,
you need to copy it there:
birt/WEB-INF/plugins/org.eclipse.birt.report.data.oda.jdbc/d rivers

Please check the integration instructions:
http://www.eclipse.org/birt/index.php?page=deploy/viewer-dep loy.html

If this doesn't help, I would suggest to create a new thread to expose this
new problem.

Thanks,

David

It's probably a problem with the oracle jdbc driver jar which is not at the
appropriate location.
"Simon Attley" <attley@gmail.com> wrote in message
news:6f5306e516d1472b9a79176ef2aad1c5$1@www.eclipse.org...
> Hi David,
> After much work and the moving around of many jar files, I have my chart
> formatting correctly and querying from my Oracle db. In my web app I have
> a saved rptdesign file called new_report.rptdesign. When I do a 'Preview
> as HTML' from within eclipse it works fine. However when I try to view the
> file in a browser (Firefox) I get the following error:
>
> Error 500: org.eclipse.birt.report.data.oda.jdbc
>
> Below is the link to my report file:
>
> http://localhost:9080/tg/faces/run?__report=new_report.rptde sign&__locale=null&__format=html&__usetestconfig =true
>
> Can you shed any light on this?
>
> Kind regards,
> Simon Attley
>
Re: Adding a Chart to a JSP Page [message #59093 is a reply to message #58476] Fri, 15 July 2005 15:23 Go to previous message
Eclipse UserFriend
Originally posted by: attley.gmail.com

Hi David,
Thanks for your help. I did have my ojdbc14.jar in the drivers directory
you specified, however I do not know where to copy the Web Viewer Example
directory to in Websphere. I didn't want to have to deploy the Viewer as a
separate web app. Right now I am instead going to try and utilize the
Report engine within my app instead and write the report to the servlet
outputstream. I am currently dealing with setting the BIRT engine home
using engineConfig.setEngineHome(). But I've found other threads that deal
with this.

Thanks again for all of your time,

Simon Attley
Previous Topic:need more clarification on charts & images problem
Next Topic:Log File For my Previous Mail
Goto Forum:
  


Current Time: Sat Nov 09 03:09:29 GMT 2024

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

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

Back to the top