1 25 29 package org.jresearch.gossip.actions.admin.group; 30 31 import java.sql.SQLException ; 32 33 import javax.servlet.http.HttpServletRequest ; 34 import javax.servlet.http.HttpServletResponse ; 35 36 import org.apache.struts.action.ActionForm; 37 import org.apache.struts.action.ActionForward; 38 import org.apache.struts.action.ActionMapping; 39 import org.jresearch.gossip.actions.admin.ManageGroupForumAction; 40 import org.jresearch.gossip.dao.ForumDAO; 41 import org.jresearch.gossip.exception.SystemException; 42 import org.jresearch.gossip.forms.ProcessGroupForm; 43 44 49 public class DeleteGroupAction extends ManageGroupForumAction { 50 64 public ActionForward process(ActionMapping mapping, ActionForm form, 65 HttpServletRequest request, HttpServletResponse response) 66 throws SystemException { 67 ForumDAO dao = ForumDAO.getInstance(); 68 ProcessGroupForm pgForm = (ProcessGroupForm) form; 69 try { 70 71 dao.deleteGroup(pgForm.getGid()); 72 log(request, "logs.LOG13", pgForm.getGid()); 73 } catch (SQLException sqle) { 74 getServlet().log("Connection.process", sqle); 75 throw new SystemException(sqle); 76 } 77 return (mapping.getInputForward()); 78 } 79 } | Popular Tags |