* @return DOCUMENT ME!
*/
public ActionForward process(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws SystemException {
GroupForm gForm = (GroupForm) form;
ActionErrors errors = new ActionErrors();
if (gForm.getGid().equals("")) {
errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(
"errors.required", "group ID"));
}
if (!errors.isEmpty()) {
saveErrors(request, errors);
return (mapping.getInputForward());
}
ForumDAO dao = ForumDAO.getInstance();
try {
dao.updateGroup(gForm);
log(request, "logs.LOG18", gForm.getGroup_name());
} catch (SQLException sqle) {
getServlet().log("Connection.process", sqle);
throw new SystemException(sqle);
}
return (new ActionForward("/ShowGroupList.do"));