You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Security Management <li...@secmgmt.com> on 2009/08/24 14:55:22 UTC
JFreeChart Plugin result type and filename confusing Firefox
My result is:
<action name="historyByDay"
class="com.secmgmt.struts2.actions.system.SystemHistoryChartByDayAction">
<result name="success" type="chart">
<param name="value">chart</param>
<param name="type">png</param>
<param name="width">640</param>
<param name="height">480</param>
</result>
</action>
This causes FF to show me the "save as" box to download a file, rather than
an image. I wind up with a file called "historyByDay", and if I rename it
with a PNG extension, it's what I'm looking for.
How can I force the MIME-type here?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org