public ActionForward execute(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {

    String resultScreen = "success";
    ReportForm rf = (ReportForm) form;
    ReportDAO dao = ReportDAOFactory.getDAO();
    rf.setCreateDate(new Date());
    int reportID = dao.addReport(rf);
    if (reportID != -1) {
      System.out.println("okb");
      dao.insertReportField(request, reportID);
      if (rf.getReportType().equals("050201")) {
        UserInfo userInfo = new UserInfo();
        userInfo.insertReportCondition(request, reportID);
      }
    }

    LogUtil.info("admin", "[AddReportAction]===========resultScreen = " + resultScreen);

    // Forward to result page
    return mapping.findForward(resultScreen);
  }
  public static PreferenceDAO getDAO() throws PreferenceSysException {
    PreferenceDAO dao = null;

    try {
      dao = new PreferenceDAOImpl();
    } catch (Exception se) {
      LogUtil.debug(
          "course", "[PreferenceDAOFactory]======================SQLException=" + se.getMessage());
      throw new PreferenceSysException(se);
    }

    return dao;
  }