输入banner图图片脚本导航/分类

jsp连接数据库

 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