楼主看看下面的连接。
http://expert.csdn.net/Expert/topic/3056/3056186.xml?temp=.3177454

解决方案 »

  1.   

    用<html:form>提交:<logic:iterate id="temp" name="scb" >
    <tr align="center">
          <td height="30">
          <font size="2"><bean:write name="temp" property="sno" /></font></td>
          <td><font size="2"><bean:write name="temp" property="sname" /></font></td>
          <td><font size="2"><bean:write name="temp"property="classname" /></font></td>
          <td><font size="2"><html:text name="sc_loginForm" property="grade" size="10" /></font></td>
          <html:hidden name="temp" property="sno" />
        </tr>
    </logic:iterate>
    以前我想过上面的方法,但name="sc_loginForm" property="grade"中grade不能放多个记录,用html:hidden 也不可能定位;所以完全没办法了;
      

  2.   

    sagittarius1979(射手爱狮子) 
    你的连接http://expert.csdn.net/Expert/topic/3056/3056186.xml?temp=.3177454
    到了本页面
    能否给重新给出连接,谢谢!!
      

  3.   

    你把它放到一个list中去,如下面这样<logic:iterate id="element" name="list">
    <logic:present name="element">
    <td><bean:write name="element" property="name" /></td>
    <td><bean:write name="element" property="ID" /></td>
    </logic:present>
    </logic:iterate>list是这么来的,在跳转前的action里定义的
    request.setAttribute("list", list);

    name,ID是list里的元素element的
      

  4.   

    CoolAbu(阿卜-Never Stop(★★★★))
    谢谢你,但我的问题还是没解决,
    首先,要在logic:iterate中嵌入html:text而不是bean:write ,并要能提交给下一个bean
    再者,我提交之后,接收时我怎么标识我提的是循环中的哪一条请高手帮忙~~
      

  5.   

    用一个int型的变量来作为索引号。
    将这个索引号用hidden传到接收的页面(程序),就可以区别了
      

  6.   

    我觉得楼主不必太拘泥于struts实现。解决这个问题我可以提出两种思路,未经过验证:
    1.借助于javascript,在每一个text后跟一个hidden,一旦text发生改变(onchange)的值传给hidden,然后再在action种对hidden进行处理。
    2.自定义jsp tag,扩展text的功能,让property属性仅用于处理从javabean中读取数据,另外定义attribute用于指定text的名称,这样可以达到和楼主给出的代码完全相同的目的。这两种方法都是比较笨的实现方法,我也希望知道一个好的解决方法
      

  7.   

    不好意思 :)
    http://expert.csdn.net/Expert/topic/2773/2773438.xml?temp=.8701746