title: error when input wrong type in struts 2
body: <p>In struts 2. I define an attribute in my action controller like below:</p>
  
  <pre><code>private int row;
  public int getRow() {
  return row;
  }
  public void setRow(int row) {
  this.row = row;
  }
  </code></pre>
  
  <p>How I can process in case: in client, user input row is a string (ex: row='abc'). My action will be have error log:</p>
  
  <pre><code>   ognl.MethodFailedException: Method "setRow" failed for object 
  at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1305)
  at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1494)
  at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)
  at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)
  at     com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)
  </code></pre>
  
  <p>I want to process: If row is String -> return row =0
  (I dont want to change attribute of row to String type, i still want to keep row is int or Integer )
  Please help me.
  Thanks!</p>