[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [birt-report-engine-dev] BIRTReport Engine in a Portlet
|
Which portal server are you using? The below solution had worked for
me for Apache Jetspeed-2 portal.
Also, I think posting this question to the BIRT newsgroup may make it
visible to more people and maybe produce more responses.
Thanks,
Deepa
On 12/1/06, Kai Hemmer <kh@xxxxxxxxxxxxxxxxxxx> wrote:
I'm trying to use the BIRTReportEngine API in a portlet.
I have been trying to do this by modifying the servlet example on the web
site: http://wiki.eclipse.org/index.php/Servlet_Example
My problem now is to get a ServletContext from the portlet in order to
create and get an IReportEngine-object.
I know there was an article from Deepa Remesh (Tue, 24 Oct 2006) with the
following subject "Deploying BIRT Report Engine in a portlet ?". Deepa
resolved the problem by casting the portletContext into PortletContextImpl
and called the method getServletContext().
ServletContext sc =
((PortletContextImpl)req.getPortletSession().getPortletContext()).getServlet
Context();
But I get a classCastException by doing this!
Does anyone have an idea what to do?
Or is there any other way to create an IReportEngine in a portlet?
I would appreciate any help.
Thanks,
P.
_______________________________________________
birt-report-engine-dev mailing list
birt-report-engine-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/birt-report-engine-dev