Package com.vsked.bean

Examples of com.vsked.bean.TbGroup


  public ActionForward add(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) {
    String url="addno";
    TbContact TbContact = (TbContact) form;
    TbContact.setTbGroup(new TbGroup(Integer.parseInt(request.getParameter("groupNo"))));
    //System.out.println(request.getParameter("groupNo"));
    TbContact.setTbUsers((TbUsers)(request.getSession().getAttribute("user")));
    if(new TbContactDAO().attachDirty(TbContact))
    {
      url="addok";
View Full Code Here


  public ActionForward modify(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) {
    String url="modifyno";
   
    TbContact TbContact = (TbContact) form;
    TbContact.setTbGroup(new TbGroup(Integer.parseInt(request.getParameter("groupNo"))));
    TbContact.setTbUsers((TbUsers)(request.getSession().getAttribute("user")));
    if(new TbContactDAO().attachDirty(TbContact))
    {
      url="modifyok";
    }
View Full Code Here

public class GroupsAction extends DispatchAction {

  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

  }
 
  public ActionForward del(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) {
    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.TbGroup

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.