jsp_复选框使用方法_附源码
来源:
中文源码网 浏览:543 次 日期:2024-05-15 23:10:20
【下载文档: jsp_复选框使用方法_附源码.txt 】
jsp 复选框使用方法
1,页面上 复制代码 代码如下:
/> | 2.action 复制代码 代码如下:String[] checkbox = request.getParameterValues("checkbox"); List
checkboxs = new ArrayList(); int operatorId =SessionMgr.getAccountSession(request, response).getId(); logger.debug("--operatorId--:"+operatorId); //判断复选框是否有选 if(checkbox!=null&&!"".equals(checkbox)){ for(int i=0;i