putUnavailablePeriodsOnRequest(request);
} catch(DomainException e) { String gid =  request.getParameter("gid"); request.setAttribute("gid", gid); request.setAttribute("bean", periodBean); addActionMessage(request, e.getMessage(), null); return mapping.findForward("editPeriodOfVigilant"); } String gid = request.getParameter("gid"); VigilantGroup group = (VigilantGroup) RootDomainObject.readDomainObjectByOID(VigilantGroup.class, Integer.valueOf(gid)); VigilantGroupBean bean = new VigilantGroupBean(); ExamCoordinator coordinator = getLoggedPerson(request).getCurrentExamCoordinator(); bean.setExamCoordinator(coordinator); bean.setSelectedVigilantGroup(group); putUnavailablePeriodsOnRequest(request, group); request.setAttribute("bean",bean);
    public ActionForward changeUnavailablePeriodForVigilant(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        UnavailablePeriodBean periodBean = (UnavailablePeriodBean) RenderUtils.getViewState()                .getMetaObject().getObject();        applyChangesToUnavailablePeriod(request, periodBean.getIdInternal(), periodBean.getBeginDate(),                periodBean.getEndDate(), periodBean.getJustification());        putUnavailablePeriodsOnRequest(request);        return mapping.findForward("manageUnavailablePeriodsOfVigilants");    }