Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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
Sean Tong is currently offline Sean Tong
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 15:04 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
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: Fri Aug 29 20:37:17 EDT 2014

Powered by FUDForum. Page generated in 0.01657 seconds