|How to create a url to a generated resource? [message #657608]
||Thu, 03 March 2011 13:22
| Paul Ramsden
Registered: February 2011
Location: BW, Germany
I am trying to use BIRT in a RAP app to display reports and charts. For reports, BIRT generates Images and HTML and loads the images via the HTML. This is not working for me as the URL to the image returns 404 NotFound.|
I downloaded the examples from http://wiki.eclipse.org/RAP/BIRT_Integration but the report example does not work either.
I can see that an image is generated and saved to
D:\eclipse-rcp-helios-SR1-win32\eclipse\workspace\.metadata\ .plugins\org.eclipse.rap.ui\context\rwt-resources\1.23\2.30\ 0.31\0.32
The HTML then tries to load the image using
<img id="__bookmark_1" src="/1.23/2.30/0.31/0.32" alt="" style=" width: 400pt; height: 250pt;display: block;"></img>
but gets a 404.
Do I need to register a resource alias or something in order to get at that image?
(The Chart example works ok but this uses an Image in a Label on a Canvas which is quite a different approach)
I am using RAP 1.3 and BIRT 2.6.
[Updated on: Thu, 03 March 2011 13:23]
Report message to a moderator
|Re: (no subject) [message #697903 is a reply to message #697822]
||Mon, 18 July 2011 09:45
Originally posted by: |
regardless how you obtain the web-app base, with putting your images
below 'rwt-resouces' you may interfere with internal workings of RAP as
well. This path is meant for resources that were registered with the
As far as I understand, BIRT resources don't necessarily have to lie
At least With RAP 1.5, the path of the web-app base in the local file
system can be obtained like so:
Though I am not entirely sure, the same should also work for 1.4.
On 18.07.2011 08:42, Paul Ramsden wrote:
> Hi Rüdiger
> thanks for the interest. I have been trying to generate reports and
> chart in a RAP app using BIRT. My approach (see earlier posts in this
> thread) includes setting a path where BIRT outputs images. This path
> needs to be the context path which is why I'm trying to find the
> absolute path using the 'internal' classes. It could be that there is a
> better way to do this, of course.
> Assuming this is the correct approach, I would need an API extension
> which returns the WebAppBase path.
Professional services for RAP and RCP?
Powered by FUDForum
. Page generated in 0.02497 seconds