日期:2014-05-20  浏览次数:20737 次

表单提交问题
现在我有一个表单 
<logic:iterate ....... 
  <input ..... name="time1" value="XXXXX"> 
  <select name="time2"> 
  <option value="vvvvvv">VVVVV </option> 
  ....... 
  <option value="vvvvvv">VVVVV </option> 
  </select> 
</logic:iterate> 
我想把循环的list取出来,在Action中进行处理,而且time1和time2的对应关系不能打乱 
请问哪位大侠指点一二,最好能有代码

------解决方案--------------------
HTML code

    <html:form action="#">
        <logic:iterate id="mybean" name="beans" indexId="myIndex">
            <input name="time1${myIndex }" value=""/>
            <select name="time2${myIndex }">
                <option></option>
                <option></option>
            </select>
        </logic:iterate>
    </html:form

------解决方案--------------------
HTML code

<logic:iterate id="PM"  name="processPM" offset="0" length="6" indexId="index">
<li><b>${index+1 }</b>.<a href="/evaluate.do?uu=<%=uu %>&evaluateId=
<bean:write name="PM"property="id"/>"><bean:write name="PM" property="companyName"/></a></li>
</logic:iterate>