if ("add".equals(method)) {
String userId=request.getParameter("userid");
String userName=request.getParameter("username");
String userPass=request.getParameter("userpass");
String groupId=request.getParameter("groupid");
flag=new TblUserAllDAO().add(new TblUserAll(userId,userName,userPass,groupId));
}
if ("edit".equals(method)) {
String userId=request.getParameter("userid");
String userName=request.getParameter("username");
String userPass=request.getParameter("userpass");
String groupId=request.getParameter("groupid");
flag=new TblUserAllDAO().edit(new TblUserAll(userId,userName,userPass,groupId));
}
if("login".equals(method)){
isLogin=true;
String userName=request.getParameter("username");
String userPass=request.getParameter("userpass");
TblUserAll tu=new TblUserAllDAO().checkLogin(userName, userPass);
if(tu!=null){
flag=true;
HttpSession session = request.getSession();
session.setAttribute("user",tu);
response.sendRedirect("index.jsp");