可以用标签库里面的logic配合iretator循环来读
先在action中把这个collection放在request中,然后用那个读出来显示就可以了。

解决方案 »

  1.   

    更新就看你用什么啦
    修改页面对应一个form,修改后提交的数据就封装到form中,再看你在business layer用什么方法来和数据库打交道了,不同的方法更新都不一样的了。
      

  2.   

    <logic:iterate id="right" name="rightForm" property="list">
    <tr>
        <td><bean:write name="right" property="progid"/></td>
        <td><bean:write name="right" property="progname"/></td>
        <td><html:checkbox name="right" property="righttype" value="0"/></td>
        <td><html:checkbox name="right" property="righttype" value="1"/></td>
        <td><html:checkbox name="right" property="righttype" value="2"/></td>
    </tr>
    这样显示,能修改后能保存到collection里的每个Form吗?
      

  3.   

    你这不是修改页面啊,只是一个显示页面,用户并不能修改显示的数据
    一般是有一个显示页面,有一个修改的页面,当修改完后,对应的action就可以调用相应的业务逻辑来处理封装了数据的object。