I'm trying to expose Report delivered by a reporting solution through a Portlet.
Unfortunately, the API of the Reporting solution which generates a HTML snippet accepts HttpServletRequest, HttpServletResponse and ServletContext.
Wondering how do I create a dummy set of these above mentioned objects from the PortletRequest (either Render or Action).
Any idea/pointer is appreciated.
You can try this.
JbossActionRequest acReq = new JbossActionRequest(actionRequest); Here the actionRequest is of type ActionRequest HttpRequest httpReq = acReq.getControllerContext().getServerInvocation().getServerContext().getClientRequest(); Similarly you can get handle to HttpServletResponse. If can get the handle from RenderRequest as well. Instead of ActionRequest just use RenderRequest in the above code.
|Retrieving data ...|