title: Struts 1 - Row submit
body: <p>I'm having an issue with a Struts 1 form, which contains a logic:iterate in charge of creating rows, each with an input button. 
  The problem comes up when I hit any of those submit buttons, the dynamic data is not properly being posted and the form doesn't have those values, here's an example:</p>
  
  <pre><code>&lt;html:form action="/myAction" styleClass="centeredForm"  style="display:inline" &gt;
    &lt;td class="formLabel"&gt;City&lt;/td&gt;
    &lt;td class="formControl"&gt;
      &lt;bean:define id="cities" name="myForm"
                   property="cities" type="java.util.Collection"/&gt;
      &lt;html:select styleClass="dashSelect" property="city"&gt;
        &lt;html:option value=""&gt;All Cities&lt;/html:option&gt;
        &lt;html:options collection="cities"
                      property="id" labelProperty="value"/&gt;
      &lt;/html:select&gt;
    &lt;/td&gt;
  
    ... Other elements ...
  
    &lt;logic:iterate id="myObject" name="myForm" property="myObjects" indexId="index" type="com.test.MyObject"&gt;
        &lt;% String rowClass = index.intValue() % 2 == 0 ? "even-row" : "odd-row"; %&gt;
      &lt;tr class="&lt;%=rowClass%&gt;"&gt;
        &lt;td class="result-cell"&gt;&lt;bean:write name="myObject" property="id" /&gt;&amp;nbsp;&lt;/td&gt;
        &lt;td class="result-cell"&gt;&lt;bean:write name="myObject" property="name" /&gt;&amp;nbsp;&lt;/td&gt;
        &lt;td class="result-cell"&gt;
          &lt;html:select styleClass="dashSelect" name="myObject" property="status"&gt;
            &lt;html:option value="F"&gt;Disabled&lt;/html:option&gt;
            &lt;html:option value="T"&gt;Enabled&lt;/html:option&gt;
          &lt;/html:select&gt;
        &lt;/td&gt;
  
        &lt;td&gt;
          &lt;html:submit/&gt;
        &lt;/td&gt;
  </code></pre>
  
  <p>The "city" portion and the rest outside of the logic:iterate, come up just fine on "myForm", but "myObject" isn't. I even tried submitting this with a JavaScript function but wasn't able to get it properly working. 
  Currently, what I have (That html:submit that I left as a reference) causes the POST to contain a bunch of "status" parameters and the proper values that I mentioned before.</p>
  
  <p>Can anyone shed some light onto this?</p>
  
  <p>Let me know if you need further information.</p>
  
  <p>Thanks a lot in advance!</p>