action调用serv层方法public String dels(){
String str ="" ;
String ids[] = str.split(",");
db.getConnection();
ygs.dels(conn, ids);
list = ygs.show(conn);
db.colseAll(conn, pstat, null);
return this.SUCCESS;
}
你的str不应该是传进来的吗?
String str ="" ;
String ids[] = str.split(",");
db.getConnection();
ygs.dels(conn, ids);
list = ygs.show(conn);
db.colseAll(conn, pstat, null);
return this.SUCCESS;
}
你的str不应该是传进来的吗?
跳过action层呢????????????
if(str == "")
str += sel[i].value;
else
str += ","+sel[i].value;
}
if(window.confirm("确定删除吗?")){
window.location.href= "delAll.action?id="+str;
}
二楼说的。jsp这个只是单纯的跳到jsp页面而已,也没有什么需要显示的,所以没有必要再经过action了吧!就算不是用js,也是一个单纯的连接连接到了。jsp页面
String ids[] = str.split(",");
db.getConnection();
ygs.dels(conn, ids);
什么东西?str="";?????????????????????