Package com.vsked.bean

Examples of com.vsked.bean.TbUsersDAO


 
  public ActionForward modify(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) {
    String url="modifyno";
    TbUsers TbUsers = (TbUsers) form;
    if(new TbUsersDAO().attachDirty(TbUsers)==true && !TbUsers.getUserName().equals(""))
    {
      url="modifyok";
    }
    return mapping.findForward(url);
  }
View Full Code Here


  public ActionForward del(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) {
    String url="delno";
    TbUsers TbUsers = (TbUsers) form;
    TbUsers.setUserNo(Integer.parseInt(request.getParameter("id")));
    if(new TbUsersDAO().delete(TbUsers))
    {
      url="regok";
    }
    return mapping.findForward(url);
  }
View Full Code Here

  public ActionForward login(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) {
    String url="loginno";
    TbUsers TbUsers = (TbUsers) form;
        //System.out.println(TbUsers.getUserName()+"|"+TbUsers.getUserPassword());
    if(new TbUsersDAO().checkLogin(TbUsers)!=null && !TbUsers.getUserName().equals(""))
    {
      url="loginok";
      HttpSession s=request.getSession(true);
      s.setAttribute("user",new TbUsersDAO().findByProperty("userName", TbUsers.getUserName()).get(0));
    }
       
    return mapping.findForward(url);
  }
View Full Code Here

 
  public ActionForward reg(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) {
    String url="regno";
    TbUsers TbUsers = (TbUsers) form;
    if(new TbUsersDAO().save(TbUsers)==true &&  !TbUsers.getUserName().equals(""))
    {
      url="regok";
    }
    return mapping.findForward(url);
  }
View Full Code Here

TOP

Related Classes of com.vsked.bean.TbUsersDAO

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.