Package com.vsked.dao

Examples of com.vsked.dao.TblUserAllDAO


    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");
View Full Code Here

TOP

Related Classes of com.vsked.dao.TblUserAllDAO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.