我有两张表,一张是用来显示的表 topic 我有一个list标签,用来显示数据库中的数据,还有一个提交按钮 用来提交我option中的值,我需要一个循环变量来接收这个option的值,好比a1、a2的循环,我要吧option中的值放到a1 a2中 然后将提交...请问我的循环变量该怎么定义????谢谢 麻烦帮个忙.我页面上的标签如下:
<app:ListTopicGuideTag id="topic" indexPage="0" pageSize="1000" filter="true" order="false" tgid="<%=id%>">
   <tr>
    <td><%=count%>、${topic.topicName}</td>
      </tr>
         <tr>
           <td>
          <table>
             <tr>
               <%
for(int i=1;i<=topic.getOptionCounter();i++){
switch(i){
case 1:
      %>
             <td>
               <input type="radio" id="v" value="${topic.option1}" name="${topic.id}" onclick="setValue()" />
                            ${topic.option1}
                </td>
             <%
      break;
      case 2:
    %>
              <td>
                <input type="radio" id="v" value="${topic.option2}" name="${topic.id}" onclick="setValue()" />
                            ${topic.option2}
               </td>
             <%
      break;
      case 3:
    %>
           <td>
                <input type="radio" id="v" value="${topic.option3}" name="${topic.id}" onclick="setValue()" />
                            ${topic.option3}
           </td>
             <%
       break;
       case 4:
   %>
            <td>
              <input type="radio" id="v" value="${topic.option4}" name="${topic.id}" onclick="setValue()" />
                            ${topic.option4}
            </td>
            <%
       break;
       case 5:
   %>
             <td>
              <input type="radio" id="v" value="${topic.option5}" name="${topic.id}" onclick="setValue()" />
                            ${topic.option5}
             </td>
              <%break;}}%>
              </tr>
              </table></td>
       </tr>
      <%count++;%>
    </app:ListTopicGuideTag>