You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Rainer Hermanns (JIRA)" <ji...@apache.org> on 2009/04/22 22:08:06 UTC

[jira] Updated: (WW-2742) Paramters not being set in JFreeChart Plugin

     [ https://issues.apache.org/struts/browse/WW-2742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rainer Hermanns updated WW-2742:
--------------------------------

    Fix Version/s:     (was: 2.1.8)
                   2.1.7

> Paramters not being set in JFreeChart Plugin
> --------------------------------------------
>
>                 Key: WW-2742
>                 URL: https://issues.apache.org/struts/browse/WW-2742
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Other
>            Reporter: Herak
>            Assignee: Rainer Hermanns
>             Fix For: 2.1.7
>
>
> <action name="ch" class="org.someorg.chart.ChartAction">
> 		<result name="success" type="chart">
> 			<param name="width">${width}</param>
> 			<param name="height">${height}</param>
> 		</result>
> </action>
> In the above case I am getting an IllegalArgumentException, although I have defined width and height in ChartAction
> public class ChartAction extends ActionSupport
> {
> 	private static final long serialVersionUID = -4845276888116145855L;
> 	
> 	private Integer width = 200;
> 	private Integer height = 400;
> 	public String execute() throws Exception
> 	{
> 		chart = new chart..
> 		return SUCCESS;
> 	}
> 	public Integer getWidth()
> 	{
> 		return width;
> 	}
> 	public void setWidth(Integer width)
> 	{
> 		this.width = width;
> 	}
> 	public Integer getHeight()
> 	{
> 		return height;
> 	}
> 	public void setHeight(Integer height)
> 	{
> 		this.height = height;
> 	}
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.