遍历 取出每个的值 用字符串拼装(中间用","分割)然后value.split(","); 就是数组了!
解决方案 »
- 请教个问题,在jsp中按钮属性在form中没有定义
- description The server encountered an internal error () that prevented it from fulfilling this reque
- 紧急求助!jsp中操作excel公式
- java取ASP页面中checkbox的value和checked值
- 关于CAS的一些问题!
- hr系统求救 【急】【急】【急】快点来啊在线等
- 请问我向Oracle库中写汉字,全部变成了乱码,怎样解决啊,急
- ZK框架Listbox如何显示数据啊
- 关于struts2 标签库struts2 <s:property value=" "/>在JSP页面中不能显示值
- 文档根元素 "beans" 必须匹配 DOCTYPE 根 "null"
- text 和password 为啥文本框不一样呢
- 你的应用系统的主页都有哪些内容?
public int delUser(int[] userID) {
int num=0;
conn=this.getConn(); //获得链接
try {
pstmt=conn.prepareStatement("delete userInfo where userID=?");
for(int i=0;i<userID.length;i++)
{
pstmt.setInt(1,userID[i]);
}
num=pstmt.executeUpdate();
} catch (SQLException e) {
// TODO 自动生成 catch 块
e.printStackTrace();
}
finally{
this.closeAll(conn, pstmt, rs);
}
return num;
}