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);