Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Rendering protected images in HTML texts
Rendering protected images in HTML texts [message #713639] Mon, 08 August 2011 17:44 Go to next message
Sean Tong is currently offline Sean TongFriend
Messages: 2
Registered: July 2009
Junior Member
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 19:04 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 Apr 24 18:45:56 GMT 2024

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

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

Back to the top