title: invoke Struts 2 action method with different arguments
body: <p>In my struts 2 actionclass, I have a method:</p>
  
  <pre><code>public String doXXX(String param){
  
  //do stuff
  return SUCCESS;
  }
  </code></pre>
  
  <p>In my config xml, how can I call this method with different values for 'param' based on the action. Something like:</p>
  
  <pre><code>&lt;action name="action1" class="struts2Class" method="doXXX" param = "foo" /&gt;
  &lt;action name="action2" class="struts2Class" method="doXXX" param = "bar" /&gt;
  </code></pre>