Skip to main content



      Home
Home » Archived » BIRT » Deploying BIRT Report Engine in a portlet ?
Deploying BIRT Report Engine in a portlet ? [message #197153] Mon, 23 October 2006 13:58 Go to next message
Eclipse UserFriend
I would like to know if deploying BIRT Report Engine in a portlet is
supported. If yes, are there any examples of how this can be done?

I have been trying to do this by modifying the servlet example on the
web site: http://wiki.eclipse.org/index.php/Servlet_Example

I was trying to modify the above example to make it run using Apache
JetSpeed-2 portal. I have not been able to figure out what to pass as
the platform context to the report engine. In the servlet example, when
creating the report engine object, we use the ServletContext to create a
new platform context and set it in the EngineConfig object. Here is the
code snippet from the example:

IPlatformContext context = new PlatformServletContext( sc );
config.setPlatformContext( context );

I do not know how/if I can get the servlet context when running as a
portlet. Is there any equivalent platform context object in BIRT API for
portlet framework?

I would appreciate any help in this.

Thanks,
Deepa
Re: Deploying BIRT Report Engine in a portlet ? [message #197487 is a reply to message #197153] Tue, 24 October 2006 17:13 Go to previous message
Eclipse UserFriend
I could deploy the BIRT report engine in Apache Jetspeed-2 portal. Sorry
for posting the question about ServletContext in this forum as this was
actually related to the portal.

I am posting the answer I found in case anyone else hits the same wall.
To get the servlet context from the Jetspeed portlet, I used
getServletContext() method in
org.apache.pluto.core.impl.PortletContextImpl.

ServletContext sc =
((PortletContextImpl)req.getPortletSession().getPortletConte xt()).getServletContext();


With few other changes to the servlet example, I could deploy a simple
report in a portlet. I think it would be helpful to add an example to
the BIRT wiki for this.

Thanks,
Deepa


Deepa Remesh wrote:
>
> I would like to know if deploying BIRT Report Engine in a portlet is
> supported. If yes, are there any examples of how this can be done?
>
> I have been trying to do this by modifying the servlet example on the
> web site: http://wiki.eclipse.org/index.php/Servlet_Example
>
> I was trying to modify the above example to make it run using Apache
> JetSpeed-2 portal. I have not been able to figure out what to pass as
> the platform context to the report engine. In the servlet example, when
> creating the report engine object, we use the ServletContext to create a
> new platform context and set it in the EngineConfig object. Here is the
> code snippet from the example:
>
> IPlatformContext context = new PlatformServletContext( sc );
> config.setPlatformContext( context );
>
> I do not know how/if I can get the servlet context when running as a
> portlet. Is there any equivalent platform context object in BIRT API for
> portlet framework?
>
> I would appreciate any help in this.
>
> Thanks,
> Deepa
>
>
>
>
Previous Topic:Sharing BIRT Report Engine in multiple Web applications
Next Topic:Default value for input parameter cannot be null.
Goto Forum:
  


Current Time: Tue Jul 22 08:43:10 EDT 2025

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

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

Back to the top