request.setAttribute("forum", this.getRequestedForum(request)); request.setAttribute("thread", thread); request.setAttribute("person", this.getLoggedPerson(request)); request.setAttribute("showReplyBox", this.getShowReplyBox(request)); request.setAttribute("currentPageNumber", pageNumber); request.setAttribute("pageNumbers", pageNumbers); request.setAttribute("messages", result.getLeft());
    public ActionForward viewThread(ActionMapping mapping, ActionForm actionForm,            HttpServletRequest request, HttpServletResponse response) throws FenixServiceException,            FenixFilterException {	ConversationThread thread = this.getRequestedThread(request);		Integer pageNumber = getPageNumber(request);	GenericPair<List, List<Integer>> result = pageList(thread.getConversationMessages(), pageNumber,                DEFAULT_PAGE_SIZE, ConversationMessage.CONVERSATION_MESSAGE_COMPARATOR_BY_CREATION_DATE);	List<Integer> pageNumbers = result.getRight();	        request.setAttribute("forum", this.getRequestedForum(request));        request.setAttribute("thread", thread);        request.setAttribute("person", this.getLoggedPerson(request));        request.setAttribute("showReplyBox", this.getShowReplyBox(request));        request.setAttribute("currentPageNumber", pageNumber);        request.setAttribute("pageNumbers", pageNumbers);                                request.setAttribute("messages", result.getLeft());        return mapping.findForward("viewThread");    }