其实很简单  我这里只有测试的   具体操作  大家再去拓展吧   希望能帮助到大家做批量授权!!


Java code:
private  List < Coandma >  coList  =   new  ArrayList < Coandma > ();


public  List < Coandma >  getCoList()  {
        
return coList;
    }


    
public   void  setCoList(List < Coandma >  coList)  {
        
this.coList = coList;
    }



public  String updateOther()  {
        
if (coList.size() != 0{
            
for (int i = 0; i < coList.size(); i++{
                System.out.println(coList.get(i).getTelphone() 
+ "--\t\t"
                        
+ coList.get(i).getNewspaper() + "--\t\t"
                        
+ coList.get(i).getPayment() + "--\t\t"
                        
+ coList.get(i).getYangbao() + "--\t\t"
                        
+ coList.get(i).getEmail());
            }

            
return "success";
        }
 else {
            request.setAttribute(
"msg""<script>alert('请进行修改再做保存!');</script>");
         
   return "failure";
        }


    }


html code:

< tr >
                    
< td > A </ td >
                    
< td >< input  type ="checkbox"  name ="coList[0].telphone"  value ="1"   /></ td >
                    
< td >< input  type ="checkbox"  name ="coList[0].newspaper"  value ="1"   /></ td >
                    
< td >< input  type ="checkbox"  name ="coList[0].email"  value ="1"   /></ td >
                    
< td >< input  type ="checkbox"  name ="coList[0].yangbao"  value ="1"   /></ td >
                    
< td >< input  type ="checkbox"  name ="coList[0].payment"  value ="1"   /></ td >
                
</ tr >
                
< tr >
                    
< td > B </ td >
                    
< td >< input  type ="checkbox"  name ="coList[1].telphone"  value ="1"   /></ td >
                    
< td >< input  type ="checkbox"  name ="coList[1].newspaper"  value ="1"   /></ td >
                    
< td >< input  type ="checkbox"  name ="coList[1].email"  value ="1"   /></ td >
                    
< td >< input  type ="checkbox"  name ="coList[1].yangbao"  value ="1"   /></ td >
                    
< td >< input  type ="checkbox"  name ="coList[1].payment"  value ="1"   /></ td >
                
</ tr >



现在还没有搭配到一个循环 差不多就是这样了吧  到时候数据从后台过来下面是图示:
页面:



输出:



大家拓展了 可以留言  以便帮助后来者  谢谢各位!