<%-- - $RCSfile$ - $Revision: 5300 $ - $Date: 2006-09-08 16:16:21 -0700 (Fri, 08 Sep 2006) $ - - Copyright (C) 2004 Jive Software. All rights reserved. - - This software is the proprietary information of Jive Software. - Use is subject to license terms. --%> <%@ page import="org.jivesoftware.openfire.muc.MUCRole, org.jivesoftware.openfire.muc.MUCRoom, org.jivesoftware.util.ParamUtils, java.net.URLEncoder, java.text.DateFormat" errorPage="error.jsp" %> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <% webManager.init(request, response, session, application, out); %> <% // Get parameters String roomName = ParamUtils.getParameter(request,"roomName"); // Load the room object MUCRoom room = webManager.getMultiUserChatServer().getChatRoom(roomName); if (room == null) { // The requested room name does not exist so return to the list of the existing rooms response.sendRedirect("muc-room-summary.jsp"); return; } // Formatter for dates DateFormat dateFormatter = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT); %> <fmt:message key="muc.room.occupants.title"/> "/>

<%= room.getName() %> <%= room.getOccupantsCount() %> / <%= room.getMaxUsers() %> <%= dateFormatter.format(room.getCreationDate()) %> <%= dateFormatter.format(room.getModificationDate()) %>

<% for (MUCRole role : room.getOccupants()) { %> <% } %>
<%= role.getUserAddress() %> <%= role.getNickname() %> <%= role.getRole() %> <%= role.getAffiliation() %>