title: Struts2 submit button method call doesn't fire
body: <p>I am having problems with the below code, can anyone explain why the method may not be being fired on the jobListAction? 'Setup' is being called twice upon submission of the form.  In short, I can't seem to get the struts button to call multiple methods. Any pointers / things to check?</p>
  
  <pre><code>public class JobListAction {
      public String execute() {
          System.out.println("setup");
      }
  
      public String deactivate() {
          System.out.println("called");
      }
     public String callonme()
     {
     }
  } 
  </code></pre>
  
  <p>JSP:</p>
  
  <pre><code>&lt;s:form id="recordsListForm" method="post" action="jobList"&gt;
   &lt;s:submit type="button" action="deactivate" value="Deactivate Selected Jobs" method="deactivate" /&gt;
   &lt;s:submit type="button" action="callonme" value="CallonMe" method="callonme" /&gt;
  
  &lt;/s:form&gt;
  </code></pre>
  
  <p>Struts.xml</p>
  
  <pre><code>    &lt;!-- Job List --&gt;
      &lt;action name="jobList" class="JobListAction"&gt;
          &lt;result name="input"&gt;/jsp/admin/jobList.jsp&lt;/result&gt;
          &lt;result name="success"&gt;/jsp/admin/jobList.jsp&lt;/result&gt;
      &lt;/action&gt;
  
      &lt;!-- Job List - Deactivate Job --&gt;
      &lt;action name="deactivate" class="JobListAction" method="deactivate"&gt;
          &lt;result name="input"&gt;/jsp/admin/jobList.jsp&lt;/result&gt;
          &lt;result name="success"&gt;/jsp/admin/jobList.jsp&lt;/result&gt;
      &lt;/action&gt;
  
      &lt;action name="callonme" class="JobListAction" method="callonme"&gt;
          &lt;result name="input"&gt;/jsp/admin/jobList.jsp&lt;/result&gt;
          &lt;result name="success"&gt;/jsp/admin/jobList.jsp&lt;/result&gt;
      &lt;/action&gt;
  </code></pre>