String enrollmentBeginDay = (String) examEnrollmentForm.get("enrollmentBeginDayFormatted"); String enrollmentBeginHour = (String) examEnrollmentForm.get("enrollmentBeginTimeFormatted"); String enrollmentEndDay = (String) examEnrollmentForm.get("enrollmentEndDayFormatted"); String enrollmentEndHour = (String) examEnrollmentForm.get("enrollmentEndTimeFormatted");
	public ActionForward editExamEnrollment(		ActionMapping mapping,		ActionForm form,		HttpServletRequest request,		HttpServletResponse response)		throws FenixActionException {		DynaActionForm examEnrollmentForm = (DynaActionForm) form;				IUserView userView = SessionUtils.getUserView(request);		Integer examIdInternal = new Integer(request.getParameter("examCode"));		Integer disciplinaExecucaoIdInternal =			new Integer(request.getParameter("objectCode"));				Integer beginDay =			new Integer((String) examEnrollmentForm.get("beginDay"));		Integer beginMonth =			new Integer((String) examEnrollmentForm.get("beginMonth"));		Integer beginYear =			new Integer((String) examEnrollmentForm.get("beginYear"));		Integer beginHour =			new Integer((String) examEnrollmentForm.get("beginHour"));		Integer beginMinutes =			new Integer((String) examEnrollmentForm.get("beginMinutes"));		Integer endDay = new Integer((String) examEnrollmentForm.get("endDay"));		Integer endMonth =			new Integer((String) examEnrollmentForm.get("endMonth"));		Integer endYear =			new Integer((String) examEnrollmentForm.get("endYear"));		Integer endHour =			new Integer((String) examEnrollmentForm.get("endHour"));		Integer endMinutes =			new Integer((String) examEnrollmentForm.get("endMinutes"));		Calendar beginDate = Calendar.getInstance();		beginDate.set(			beginYear.intValue(),			beginMonth.intValue() - 1,			beginDay.intValue(),			beginHour.intValue(),			beginMinutes.intValue());		Calendar endDate = Calendar.getInstance();		endDate.set(			endYear.intValue(),			endMonth.intValue() - 1,			endDay.intValue(),			endHour.intValue(),			endMinutes.intValue());		if (!verifyDates(beginDate, endDate)) {			setErrorMessage(request, "error.endDate.sooner.beginDate");			return mapping.getInputForward();		}		Object args[] =			{				disciplinaExecucaoIdInternal,				examIdInternal,				beginDate,				endDate };		try {			ServiceUtils.executeService(userView, "EditExamEnrollment", args);		} catch (InvalidTimeIntervalServiceException e) {			setErrorMessage(request, "error.endDate.sooner.examDate");			return mapping.getInputForward();		} catch (FenixServiceException e) {			throw new FenixActionException(e);		}		request.setAttribute("examCode", examIdInternal);		request.setAttribute("objectCode", disciplinaExecucaoIdInternal);		return mapping.findForward("viewExams");	}