Adding a Chart to a JSP Page [message #57667] |
Wed, 13 July 2005 13:29  |
Eclipse User |
|
|
|
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 #57827 is a reply to message #57777] |
Wed, 13 July 2005 16:47   |
Eclipse User |
|
|
|
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 #59093 is a reply to message #58476] |
Fri, 15 July 2005 11:23  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04790 seconds