Rendering protected images in HTML texts [message #713639] |
Mon, 08 August 2011 13:44  |
Eclipse User |
|
|
|
Hi,
We have integrated BIRT Runtime (2.6.2) with our J2EE application to generate reports. Some reports contains dynamic HTML text contents that have image URLs pointing to the images in the server. Since these images are protected requiring user validation, BIRT can't render them in the reports and the images are displayed as blank.
Is there any way to pass session id or other tokens to BIRT, so BIRT could retrieve images using these tokens? Thanks in advance for any suggestions or solutions.
|
|
|
Re: Rendering protected images in HTML texts [message #713675 is a reply to message #713639] |
Mon, 08 August 2011 15:04  |
Eclipse User |
|
|
|
If you are using the Viewer, BIRT supports getting at session variables
like:
var sessionvar =
reportContext.getHttpServletRequest().getSession().getAttribute("myvar");
If you are use the RE API this will work if you add the request object
to the app context like.
task.getAppContext().put(EngineConstants.APPCONTEXT_BIRT_VIEWER_HTTPSERVET_REQUEST,
request );
Jason
On 8/8/2011 1:44 PM, Sean Tong wrote:
> Hi,
>
> We have integrated BIRT Runtime (2.6.2) with our J2EE application to
> generate reports. Some reports contains dynamic HTML text contents that
> have image URLs pointing to the images in the server. Since these images
> are protected requiring user validation, BIRT can't render them in the
> reports and the images are displayed as blank.
>
> Is there any way to pass session id or other tokens to BIRT, so BIRT
> could retrieve images using these tokens? Thanks in advance for any
> suggestions or solutions.
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03315 seconds