Package com.vsked.bean

Examples of com.vsked.bean.TbGroupDAO


  public ActionForward add(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) {
    String url="addno";
    TbGroup TbGroup = (TbGroup) form;
    TbGroup.setTbUsers((TbUsers)(request.getSession().getAttribute("user")));
    if(new TbGroupDAO().attachDirty(TbGroup)){
      url="addok";
    }
   
    return mapping.findForward(url);
  }
View Full Code Here


  public ActionForward modify(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) {
    String url="modifyno";
    TbGroup TbGroup = (TbGroup) form;
    TbGroup.setTbUsers((TbUsers)(request.getSession().getAttribute("user")));
    if(new TbGroupDAO().attachDirty(TbGroup)){
      url="modifyok";
    }
    return mapping.findForward(url);
  }
View Full Code Here

    String url="delno";
    TbGroup TbGroup = (TbGroup) form;
    if(request.getParameter("id")!=null)
      TbGroup.setGroupNo(Integer.parseInt(request.getParameter("id")));
   
    if(new TbGroupDAO().delete(TbGroup)){
      url="addok";
    }
    return mapping.findForward(url);
  }
View Full Code Here

TOP

Related Classes of com.vsked.bean.TbGroupDAO

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.