コード例 #1
0
  public ActionForward presentConfirmation(
      ActionMapping actionMapping,
      ActionForm actionForm,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {

    final Student student = getLoggedStudent(request);
    final String eventExternalId = request.getParameter("eventId");
    CareerWorkshopConfirmationEvent event = FenixFramework.getDomainObject(eventExternalId);
    CareerWorkshopApplication application =
        retrieveThisWorkshopApplication(student, event.getCareerWorkshopApplicationEvent());
    CareerWorkshopConfirmation confirmation =
        retrieveThisWorskhopApplicationConfirmation(student, event, application);

    request.setAttribute("confirmationForm", confirmation);
    request.setAttribute(
        "confirmationBean", new CareerWorkshopConfirmationBean(confirmation.getExternalId()));
    return actionMapping.findForward("careerWorkshopConfirmationForm");
  }