Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2742

Paramters not being set in JFreeChart Plugin

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.8
    • Component/s: Other
    • Labels:
      None

      Description

      <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; }

      }

        Attachments

          Activity

            People

            • Assignee:
              rainerh Rainer Hermanns
              Reporter:
              heraksen Herak
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: