session.removeAttribute(SessionConstants.LESSON_LIST_ATT); session.setAttribute(SessionConstants.LESSON_LIST_ATT, lessons); session.setAttribute("publico.infoRoom", infoRoom);
request.setAttribute("lessonList", lessons); request.setAttribute("publico.infoRoom", infoRoom);
	public ActionForward roomViewer(		ActionMapping mapping,		ActionForm form,		HttpServletRequest request,		HttpServletResponse response)		throws Exception {				HttpSession session = request.getSession();		session.removeAttribute(SessionConstants.INFO_SECTION);		String roomName = (String) request.getParameter("roomName");		ActionErrors errors = new ActionErrors();		RoomKey roomKey = null;		InfoRoom infoRoom = null;		List lessons = null;		if (roomName != null) {			roomKey = new RoomKey(roomName);						GestorServicos gestor = GestorServicos.manager();			Object args[] = new Object[1];			args[0] = roomKey;			try {				infoRoom =					(InfoRoom) gestor.executar(null, "LerSala", args);			} catch (FenixServiceException nee) {				errors.add(					ActionErrors.GLOBAL_ERROR,					new ActionError(nee.getMessage()));			} finally {				if (!errors.isEmpty()) {					saveErrors(request, errors);					return mapping.getInputForward();				}			}			if (infoRoom != null) {				InfoExecutionPeriod infoExecutionPeriod =					(InfoExecutionPeriod) session.getAttribute(						SessionConstants.INFO_EXECUTION_PERIOD_KEY);				Object argsReadLessons[] = { infoExecutionPeriod, infoRoom };				lessons =					(List) ServiceUtils.executeService(						null,						"LerAulasDeSalaEmSemestre",						argsReadLessons);			}			if ((infoRoom != null) && (lessons != null)) {				session.removeAttribute(SessionConstants.LESSON_LIST_ATT);				session.setAttribute(SessionConstants.LESSON_LIST_ATT, lessons);				session.setAttribute("publico.infoRoom", infoRoom);			}			return mapping.findForward("roomViewer");		} else {			throw new Exception();		}	}