Package com.vsked.dao

Examples of com.vsked.dao.UserDAO


    String username=request.getParameter("username");
    String userpwd=request.getParameter("userpwd");
    Usert user=new Usert(username,userpwd);
    HttpSession session=request.getSession(true);
   
    if(new UserDAO().CheckLogin(user)){
      session.setAttribute("user","登陆成功!")
      response.sendRedirect("loginok.jsp");
    }else{
      session.setAttribute("err", "登陆失败!")
      response.sendRedirect("index.jsp");     
View Full Code Here


      throws ServletException, IOException {
    String username=request.getParameter("username");
    String userpwd=request.getParameter("userpwd");
    Usert user=new Usert(username,userpwd);
    HttpSession session=request.getSession(true);
    if(new UserDAO().AddUser(user)){
      session.setAttribute("user","注册成功");
      response.sendRedirect("loginok.jsp");
    }else{
      session.setAttribute("err", "注册失败!");
      response.sendRedirect("reg.jsp");
View Full Code Here

TOP

Related Classes of com.vsked.dao.UserDAO

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.