title: Parameter "method" not working (Struts 1)
body: <p>I have the following action declared in my struts.xml:</p>
  
  <pre><code>    &lt;action path="/updateAccountInfo"
              type="org.myCompany.UpdateAccountAction"
              name="myAccountForm"
              scope="session"
              validate="true"
              parameter="method" 
              input="/updateAccountInfo.jsp"&gt;
          &lt;forward name="success" path="/updateAccountInfo.jsp" /&gt;
      &lt;/action&gt;
  </code></pre>
  
  <p>In my JSP page, I have the following form:</p>
  
  <pre><code>&lt;html:form action="/updateAccountInfo.do"&gt;
      &lt;input type="hidden" name="method" value="sendMessage" /&gt;
  </code></pre>
  
  <p>In my java class, I have the following method:</p>
  
  <pre><code>public final ActionForward sendMessage(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request, final HttpServletResponse response) throws Exception {
      System.out.println("sending");
      return null;
  }
  </code></pre>
  
  <p>Instead of running sendMessage, Struts call the execute method. Why? Is my struts-config wrong? Or am I missing another config setting?</p>