I am hitting the customerAction (struts 2 action) from my legacy action
with url
customer/customer-creater!create.action?custId=200

As soon call goes to my customerAction i get below error

ognl.MethodFailedException: Method "setCustId" failed for object
com.actions.customer.CustomerCreateAction@c175e10
[java.lang.NoSuchMethodException:
com.actions.customer.CustomerCreateAction.setCustId([Ljava.lang.String;)]

  private int                   custId          = -1;

  public void setCustId(int custId) {
    this.custId = custId;
  }


 Struts somehow searching for setCustId with string parameter where method
exist with int parameter. As per my understanding struts 2
 internally does type conversion. So i am not sure why i am getting this
issue?

Reply via email to