HttpServletRequest request, HttpServletResponse response) throws FenixFilterException { HttpSession session = request.getSession(false); IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);  Integer executionCourseId = getObjectCode(request); request.setAttribute("objectCode", executionCourseId);  Integer lessonType = null; if (request.getParameter("bySummaryType") != null && request.getParameter("bySummaryType").length() > 0) { lessonType = new Integer(request.getParameter("bySummaryType")); }  Integer shiftId = null; if (request.getParameter("byShift") != null && request.getParameter("byShift").length() > 0) { shiftId = new Integer(request.getParameter("byShift")); }  Integer professorShiftId = getTeacherNumber(request); request.setAttribute("teacherNumber", professorShiftId);  Object[] args = { professorShiftId, executionCourseId, lessonType, shiftId }; SiteView siteView = null; try { siteView = (SiteView) ServiceUtils.executeService(userView, "ReadSummariesDepartmentAdmOffice", args);  InfoSiteSummaries infoSiteSummaries = (InfoSiteSummaries) siteView.getComponent(); for (Iterator iter = infoSiteSummaries.getInfoSummaries().iterator(); iter.hasNext();) { InfoSummary infoSummary = (InfoSummary) iter.next();  String stuffedSummaryTitle = infoSummary.getTitle().replaceAll("<","&lt;"); stuffedSummaryTitle = stuffedSummaryTitle.replaceAll(">","&gt;"); String stuffedSummaryBody = infoSummary.getSummaryText().replaceAll("<","&lt;"); stuffedSummaryBody = stuffedSummaryBody.replaceAll("<","&lt;"); infoSummary.setTitle(stuffedSummaryTitle); infoSummary.setSummaryText(stuffedSummaryBody); }   } catch (FenixServiceException e) { e.printStackTrace(); ActionErrors errors = new ActionErrors(); errors.add("error", new ActionError("error.summary.impossible.show")); saveErrors(request, errors); return mapping.getInputForward(); }  try { selectChoices(request, ((InfoSiteSummaries) ((ExecutionCourseSiteView) siteView) .getComponent()), lessonType);  Collections.sort(((InfoSiteSummaries) ((ExecutionCourseSiteView) siteView).getComponent()) .getInfoSummaries(), Collections.reverseOrder()); } catch (Exception e) { e.printStackTrace(); ActionErrors errors = new ActionErrors(); errors.add("error", new ActionError("error.summary.impossible.show")); saveErrors(request, errors); return mapping.getInputForward(); } request.setAttribute("siteView", siteView); return mapping.findForward("showSummaries"); }
HttpServletRequest request, HttpServletResponse response) throws FenixFilterException { HttpSession session = request.getSession(false); IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);  Integer executionCourseId = getObjectCode(request); request.setAttribute("objectCode", executionCourseId);  Integer lessonType = null; if (request.getParameter("bySummaryType") != null && request.getParameter("bySummaryType").length() > 0) { lessonType = new Integer(request.getParameter("bySummaryType")); }  Integer shiftId = null; if (request.getParameter("byShift") != null && request.getParameter("byShift").length() > 0) { shiftId = new Integer(request.getParameter("byShift")); }  Integer professorShiftId = getTeacherNumber(request); request.setAttribute("teacherNumber", professorShiftId);  Object[] args = { professorShiftId, executionCourseId, lessonType, shiftId }; SiteView siteView = null; try { siteView = (SiteView) ServiceUtils.executeService(userView, "ReadSummariesDepartmentAdmOffice", args);                } catch (FenixServiceException e) { e.printStackTrace(); ActionErrors errors = new ActionErrors(); errors.add("error", new ActionError("error.summary.impossible.show")); saveErrors(request, errors); return mapping.getInputForward(); }  try { selectChoices(request, ((InfoSiteSummaries) ((ExecutionCourseSiteView) siteView) .getComponent()), lessonType);  Collections.sort(((InfoSiteSummaries) ((ExecutionCourseSiteView) siteView).getComponent()) .getInfoSummaries(), Collections.reverseOrder()); } catch (Exception e) { e.printStackTrace(); ActionErrors errors = new ActionErrors(); errors.add("error", new ActionError("error.summary.impossible.show")); saveErrors(request, errors); return mapping.getInputForward(); } request.setAttribute("siteView", siteView); return mapping.findForward("showSummaries"); }
	public ActionForward showSummaries(ActionMapping mapping, ActionForm form,			HttpServletRequest request, HttpServletResponse response) throws FenixFilterException {		HttpSession session = request.getSession(false);		IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);				Integer executionCourseId = getObjectCode(request);		request.setAttribute("objectCode", executionCourseId);				Integer lessonType = null;		if (request.getParameter("bySummaryType") != null				&& request.getParameter("bySummaryType").length() > 0) {			lessonType = new Integer(request.getParameter("bySummaryType"));		}				Integer shiftId = null;		if (request.getParameter("byShift") != null && request.getParameter("byShift").length() > 0) {			shiftId = new Integer(request.getParameter("byShift"));		}				Integer professorShiftId = getTeacherNumber(request);		request.setAttribute("teacherNumber", professorShiftId);				Object[] args = { professorShiftId, executionCourseId, lessonType, shiftId };		SiteView siteView = null;		try {			siteView = (SiteView) ServiceUtils.executeService(userView, "ReadSummariesDepartmentAdmOffice", args);						InfoSiteSummaries infoSiteSummaries = (InfoSiteSummaries) siteView.getComponent();			for (Iterator iter = infoSiteSummaries.getInfoSummaries().iterator(); iter.hasNext();)			{				InfoSummary infoSummary = (InfoSummary) iter.next();								String stuffedSummaryTitle = infoSummary.getTitle().replaceAll("<","&lt;");				stuffedSummaryTitle = stuffedSummaryTitle.replaceAll(">","&gt;");				String stuffedSummaryBody = infoSummary.getSummaryText().replaceAll("<","&lt;");				stuffedSummaryBody = stuffedSummaryBody.replaceAll("<","&lt;");				infoSummary.setTitle(stuffedSummaryTitle);				infoSummary.setSummaryText(stuffedSummaryBody);			}								} catch (FenixServiceException e) {			e.printStackTrace();			ActionErrors errors = new ActionErrors();			errors.add("error", new ActionError("error.summary.impossible.show"));			saveErrors(request, errors);			return mapping.getInputForward();		}				try {			selectChoices(request, ((InfoSiteSummaries) ((ExecutionCourseSiteView) siteView)					.getComponent()), lessonType);						Collections.sort(((InfoSiteSummaries) ((ExecutionCourseSiteView) siteView).getComponent())					.getInfoSummaries(), Collections.reverseOrder());		} catch (Exception e) {			e.printStackTrace();			ActionErrors errors = new ActionErrors();			errors.add("error", new ActionError("error.summary.impossible.show"));			saveErrors(request, errors);			return mapping.getInputForward();		}		request.setAttribute("siteView", siteView);		return mapping.findForward("showSummaries");	}