}
public ActionForward viewAcademicCalendar(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) throws Exception {
CalendarEntryBean bean = getRenderedObject("datesToDisplayID");
YearMonthDay beginDate = bean.getBeginDateToDisplayInYearMonthDayFormat();
YearMonthDay endDate = bean.getEndDateToDisplayInYearMonthDayFormat();
if (beginDate.isAfter(endDate)) {
addActionMessage(request, "error.begin.after.end");
ExecutionYear currentExecutionYear = ExecutionYear.readCurrentExecutionYear();
Partial begin = CalendarEntryBean.getPartialFromYearMonthDay(currentExecutionYear.getBeginDateYearMonthDay());
Partial end = CalendarEntryBean.getPartialFromYearMonthDay(currentExecutionYear.getEndDateYearMonthDay());
bean = CalendarEntryBean.createCalendarEntryBeanToCreateEntry(bean.getRootEntry(), bean.getRootEntry(), begin, end);
RenderUtils.invalidateViewState("datesToDisplayID");
return generateGanttDiagram(mapping, request, bean);
}
return generateGanttDiagram(mapping, request, bean);