Example #1
0
  public ActionForward initCreateEscalation(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {

    ActionErrors errors = new ActionErrors();
    ActionForward forward = new ActionForward();

    try {
      EscalationForm escalataionForm = (EscalationForm) form;
      escalataionForm.setEscalation_type(null);
      escalataionForm.setWorkflow_step_id(null);
      escalataionForm.setEscalation_level(null);
      escalataionForm.setEscalation_level_status(null);
      escalataionForm.setEscalation_template(null);
      populate(form, request);
    } catch (Exception e) {
      logger.error("Exception Occurred" + e);
      errors.add("name", new ActionError("id"));
    }
    forward = mapping.findForward("CreateEscalation");
    return (forward);
  }