You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by John Cartwright <Jo...@noaa.gov> on 2008/01/03 22:36:58 UTC
S2: chart result type not recognized
Hello All,
I'm having a little trouble getting a chart result type configured using
the package declaration below. Whenever I hit the associated URL, my
browser prompts me to save a "bin" file rather than displaying the
chart. The bin file is a valid png, but somehow Struts is not
recognizing the returned type. Can anyone suggest what I'm doing wrong?
Thanks!
-- john
<package name="chart" extends="jfreechart-default" namespace="/chart">
<action name="serverIronLoadChart"
class="gov.noaa.eds.arcims.tng.action.ServerIronLoadChartAction">
<result type="chart">
<param name="width">400</param>
<param name="height">300</param>
</result>
</action>
</package>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: S2: chart result type not recognized
Posted by Ian Roughley <ia...@fdar.com>.
How are you referencing the action? I always use an img tag like this:
<img src="serverIronLoadChart.action" />
/Ian
--
Ian Roughley
>From Down & Around, Inc.
Consulting * Training / Mentoring * Agile Process * Open Source
web: http://www.fdar.com - email: ian@fdar.com
John Cartwright wrote:
> Hello All,
>
> I'm having a little trouble getting a chart result type configured
> using the package declaration below. Whenever I hit the associated
> URL, my browser prompts me to save a "bin" file rather than
> displaying the chart. The bin file is a valid png, but somehow Struts
> is not recognizing the returned type. Can anyone suggest what I'm
> doing wrong?
>
> Thanks!
>
> -- john
>
>
> <package name="chart" extends="jfreechart-default" namespace="/chart">
> <action name="serverIronLoadChart"
> class="gov.noaa.eds.arcims.tng.action.ServerIronLoadChartAction">
> <result type="chart">
> <param name="width">400</param>
> <param name="height">300</param>
> </result>
> </action>
> </package>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org