beanWithVigilants.setEmailMessage(RenderUtils.getResourceString( "VIGILANCY_RESOURCES", "label.vigilancy.emailConvoke")); request.setAttribute("bean", beanWithVigilants); return mapping.findForward("confirmConvokes");
String email = RenderUtils.getResourceString("VIGILANCY_RESOURCES", "label.vigilancy.emailConvoke"); MessageFormat format = new MessageFormat(email); WrittenEvaluation evaluation = beanWithVigilants.getWrittenEvaluation(); DateTime beginDate = evaluation.getBeginningDateTime(); String date = beginDate.getDayOfMonth() + "/" + beginDate.getMonthOfYear() + "/" + beginDate.getYear(); Object[] args = { evaluation.getName(), date, beginDate.getHourOfDay(), beginDate.getMinuteOfHour(), evaluation.getAssociatedRoomsAsString(), beanWithVigilants.getVigilantsAsString(), beanWithVigilants.getSelectedVigilantGroup().getRulesLink() }; beanWithVigilants.setEmailMessage(format.format(args)); request.setAttribute("bean", beanWithVigilants); return mapping.findForward("confirmConvokes");
	public ActionForward confirmConvokes(ActionMapping mapping,			ActionForm form, HttpServletRequest request,			HttpServletResponse response) throws Exception {		ConvokeBean beanWithTeachers = (ConvokeBean) RenderUtils.getViewState(				"selectVigilantsThatAreTeachers").getMetaObject().getObject();				ConvokeBean beanWithVigilants = (ConvokeBean) RenderUtils.getViewState(				"selectVigilants").getMetaObject().getObject();		ConvokeBean beanWithUnavailables = (ConvokeBean) RenderUtils				.getViewState("selectVigilantsThatAreUnavailable")				.getMetaObject().getObject();		List<Vigilant> teachers, vigilants, unavailables;		teachers = beanWithTeachers.getSelectedTeachers();		vigilants = beanWithVigilants.getVigilants();		unavailables = beanWithUnavailables.getSelectedUnavailableVigilants();		vigilants.addAll(teachers);		vigilants.addAll(unavailables);		beanWithVigilants.setVigilants(vigilants);		beanWithVigilants.setEmailMessage(RenderUtils.getResourceString(				"VIGILANCY_RESOURCES", "label.vigilancy.emailConvoke"));		request.setAttribute("bean", beanWithVigilants);		return mapping.findForward("confirmConvokes");	}