1 23 27 package org.jresearch.gossip.actions.admin.group; 28 29 import java.sql.SQLException ; 30 31 import javax.servlet.http.HttpServletRequest ; 32 import javax.servlet.http.HttpServletResponse ; 33 34 import org.apache.struts.action.ActionForm; 35 import org.apache.struts.action.ActionForward; 36 import org.apache.struts.action.ActionMapping; 37 import org.jresearch.gossip.IConst; 38 import org.jresearch.gossip.actions.admin.ManageGroupForumAction; 39 import org.jresearch.gossip.dao.ForumDAO; 40 import org.jresearch.gossip.exception.SystemException; 41 import org.jresearch.gossip.forms.GroupForm; 42 43 48 public class AddGroupAction extends ManageGroupForumAction { 49 63 public ActionForward process(ActionMapping mapping, ActionForm form, 64 HttpServletRequest request, HttpServletResponse response) 65 throws SystemException { 66 ForumDAO dao = ForumDAO.getInstance(); 67 try { 68 69 dao.addGroup((GroupForm) form); 70 log(request, "logs.LOG4", ((GroupForm) form).getGroup_name()); 71 } catch (SQLException sqle) { 72 getServlet().log("Connection.process", sqle); 73 throw new SystemException(sqle); 74 } 75 return (mapping.findForward(IConst.TOKEN.WELCOME)); 76 } 77 } | Popular Tags |