title: Struts form empty
body: <p>Good morning,
  I am trying to pass a form from a JSP to a Action.
  The form compiles correctly if I pass the parameters in the URL (?par=value ...) but it does not if I use submit and form value.</p>
  
  <p>I think everything is set up correctly, but I must be missing something.</p>
  
  <p>I've already searched other similar posts, but I couldn't find a solution.</p>
  
  <p><strong>The problem is that the form that arrives in the Action "new" method is empty.</strong></p>
  
  <p>struts.config.xml:</p>
  
  <pre><code>&lt;form-bean name="EsempioForm" type="com.forms.EsempioForm"/&gt;
  &lt;action name="EsempioForm" parameter="method" input="/pages/esempio.jsp" path="/esempio" scope="request" type="com.EsempioAction"&gt;
  &lt;forward ... /&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>esempio.jsp:</p>
  
  <pre><code>&lt;%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %&gt;
  ...
  &lt;html:form action="/esempio"&gt;
  &lt;input type="hidden" id="method" name="method" value="new"/&gt;
  &lt;html:text property="desc" disabled="true" /&gt;
  &lt;html:submit styleClass="button"&gt;record&lt;/html:submit&gt;
  &lt;/html:form&gt;
  </code></pre>
  
  <p>EsempioAction.java</p>
  
  <pre><code>public ActionForward new(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
      ...
      EsempioForm esempioForm = (esempioForm) form;
      ...
      return mapping.findForward(...);
  }
  </code></pre>
  
  <p>Can anyone please help me?
  Thank you very much for any advice.</p>