时间:2021-07-01 10:21:17 帮助过:22人阅读
int ident =rs.getInt("ident");
int userid=rs.getInt("id");
String userName=rs.getString("userName");
//存储用户信息
session.setAttribute("userid",userid);
session.setAttribute("userName",userName);
if(ident==1){
response.sendRedirect("admin_list_user.jsp");
}else{
response.sendRedirect("HomePage");
}
}
jsp连接数据库
标签:set resultset from exec ret admin 连接数据库 character encoding