Package com.vsked.bean

Examples of com.vsked.bean.TblUserAll


    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


            pt.setString(1, inName);
            pt.setString(2, inPassword);
            rs = pt.executeQuery();
            if (rs.next()) {
              if(tblUserAll==null){
                tblUserAll=new TblUserAll();
                tblUserAll.setAccount(rs.getString("account"));
                tblUserAll.setName(rs.getString("name"));
                tblUserAll.setPassword(rs.getString("password"));
                tblUserAll.setGroupId(rs.getString("Groupid"));
              }
View Full Code Here

              pt = conn.prepareStatement(sql);
              pt.setString(1, inAccount);
              rs = pt.executeQuery();
              if (rs.next()) {
                if(tblUserAll==null){
                  tblUserAll=new TblUserAll();
                  tblUserAll.setAccount(rs.getString("account"));
                  tblUserAll.setName(rs.getString("name"));
                  tblUserAll.setPassword(rs.getString("password"));
                  tblUserAll.setGroupId(rs.getString("Groupid"));
                }
View Full Code Here

            rs = pt.executeQuery();
            while(rs.next()) {
              if(tblUserAllList==null){
                tblUserAllList=new ArrayList<TblUserAll>();
              }
              TblUserAll tblUserAll=new TblUserAll();
            tblUserAll.setAccount(rs.getString("account"));
            tblUserAll.setName(rs.getString("name"));
            tblUserAll.setPassword(rs.getString("password"));
            tblUserAll.setGroupId(rs.getString("Groupid"));
            tblUserAllList.add(tblUserAll);
            }

        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

            rs = pt.executeQuery();
            while(rs.next()) {
              if(tblUserAllList==null){
                tblUserAllList=new ArrayList<TblUserAll>();
              }
              TblUserAll tblUserAll=new TblUserAll();
            tblUserAll.setAccount(rs.getString("account"));
            tblUserAll.setName(rs.getString("name"));
            tblUserAll.setPassword(rs.getString("password"));
            tblUserAll.setGroupId(rs.getString("Groupid"));
            tblUserAllList.add(tblUserAll);
            }

        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

TOP

Related Classes of com.vsked.bean.TblUserAll

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.