コード例 #1
0
  public ActionForward editPhdCandidacyPeriod(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response) {
    PhdCandidacyPeriod phdCandidacyPeriod = readPhdCandidacyPeriod(request);
    PhdCandidacyPeriodBean bean = readPhdCandidacyPeriodBean();

    try {
      phdCandidacyPeriod.edit(bean.getStart(), bean.getEnd());
    } catch (DomainException e) {
      addActionMessage("error", request, e.getKey(), e.getArgs());
      return editPhdCandidacyPeriodInvalid(mapping, form, request, response);
    }

    return list(mapping, form, request, response);
  }
コード例 #2
0
  public ActionForward list(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response) {
    request.setAttribute("phdCandidacyPeriods", PhdCandidacyPeriod.readPhdCandidacyPeriods());

    return mapping.findForward("list");
  }