You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Wes Wannemacher (JIRA)" <ji...@apache.org> on 2009/08/25 19:25:06 UTC
[jira] Commented: (WW-3210) JFreeChart plugin not setting correct
mime type
[ https://issues.apache.org/struts/browse/WW-3210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46691#action_46691 ]
Wes Wannemacher commented on WW-3210:
-------------------------------------
I haven't looked to see if there are existing unit tests, but there should be. I would say that one should be added that if png or jpg is set as the type, that the contentType is set after a call to 'execute'
@Chris, if you have trouble figuring out how to do it, I can probably help or take care of it and show you what I did.
> JFreeChart plugin not setting correct mime type
> -----------------------------------------------
>
> Key: WW-3210
> URL: https://issues.apache.org/struts/browse/WW-3210
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - JFreeChart
> Affects Versions: 2.1.6
> Reporter: Chris D Searle
> Priority: Minor
> Attachments: ChartResult.java.diff
>
>
> Using the jfreechart plugin. You can select PNG or JPEG image - but the HTML response sends HTML content type
> e.g. in my app
> Content-Type: text/html; charset=iso-8859-1
> This works if you use an <img src="..:"/> tag - but a direct call to the image URL returns the image as text to the browser.
> (BTW - not sure why there are several plugin components in this JIRA but not one for the chart plugin or for plugin: other)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.