Skip to main content



      Home
Home » Archived » BIRT » Rendering protected images in HTML texts
Rendering protected images in HTML texts [message #713639] Mon, 08 August 2011 13:44 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
>
>
>
Previous Topic:BIRT Exception
Next Topic:XML datasource with dynamic URL
Goto Forum:
  


Current Time: Wed Jul 23 11:06:59 EDT 2025

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

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

Back to the top