Examples of TbContact


Examples of com.vsked.bean.TbContact

public class ContactsAction extends DispatchAction {

  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";
    }
    return mapping.findForward(url);
View Full Code Here

Examples of com.vsked.bean.TbContact

 
  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";
    }
    return mapping.findForward(url);
View Full Code Here

Examples of com.vsked.bean.TbContact

  }
 
  public ActionForward del(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response) {
    String url="delno";
    TbContact TbContact = (TbContact) form;
   
    if(request.getParameter("id")!=null)
      TbContact.setContactNo(Integer.parseInt(request.getParameter("id")));
   
    if(new TbContactDAO().delete(TbContact)){
      url="addok";
    }
    return mapping.findForward(url);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.