Re: chart in jboss portal
Nils-Helge Garli <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <10384886.1145260664706.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
Sorry, I was a bit unclear. You need to invoke setContentType on the render response, not the http servlet response. However, I still don't think it would work this way. I suggest you try to do something like:
[code]
RenderResponse renderResponse = PortletActionContext.getRenderResponse();
renderResponse.setContentType("image/png");
ChartUtilities.writeChartAsPNG(renderResponse.getOutputStream(), chart, width, height);
[/code]
That is, drop the ServletActionContext and HttpServlet objects.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=25758&messageID=51601#51601
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]