Package org.jresearch.gossip.forms

Examples of org.jresearch.gossip.forms.GroupForm


   * @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"));
View Full Code Here

TOP

Related Classes of org.jresearch.gossip.forms.GroupForm

Copyright © 2018 www.massapicom. 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.