From 487c93e77a0bea7e84444b86b4b757cb87facc4b Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Wed, 18 Feb 2004 13:04:48 +0000 Subject: [PATCH] Code formatted git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2233 b35dd754-fafc-0310-a699-88a17e54d16e --- sample/web/viewRoster.jsp | 44 +++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/sample/web/viewRoster.jsp b/sample/web/viewRoster.jsp index 1c1f30c13..f9d3c7737 100644 --- a/sample/web/viewRoster.jsp +++ b/sample/web/viewRoster.jsp @@ -1,7 +1,7 @@ <%-- - - $$RCSfile$$ - - $$Revision$$ - - $$Date$$ + - $RCSfile$ + - $Revision$ + - $Date$ - - Copyright (C) 2002-2003 Jive Software. All rights reserved. - @@ -66,24 +66,24 @@ String user = getParameter(request, "user"); String groupName = getParameter(request, "group"); - // Removes the selected user from the roster (and all the groups) + // Remove the selected user from the roster (and all the groups) if ("rosterDelete".equals(action)) { RosterEntry entry = roster.getEntry(user); - roster.removeEntry(entry); + roster.removeEntry(entry); response.sendRedirect("viewRoster.jsp"); return; } - // Removes the selected user from the selected group + // Remove the selected user from the selected group if ("groupDelete".equals(action)) { RosterEntry entry = roster.getEntry(user); - RosterGroup rosterGroup = roster.getGroup(groupName); - rosterGroup.removeEntry(entry); + RosterGroup rosterGroup = roster.getGroup(groupName); + rosterGroup.removeEntry(entry); response.sendRedirect("viewRoster.jsp"); return; } - // Close the connection to the XMPP server + // Close the connection to the XMPP server if ("close".equals(action)) { conn.close(); session.invalidate(); @@ -119,7 +119,7 @@ <% for (Iterator groups = roster.getGroups(); groups.hasNext();) { - RosterGroup group = (RosterGroup)groups.next();%> + RosterGroup group = (RosterGroup)groups.next();%> @@ -131,12 +131,12 @@ <% for (Iterator it = group.getEntries(); it.hasNext();) { - RosterEntry entry = (RosterEntry)it.next();%> + RosterEntry entry = (RosterEntry)it.next();%> - + @@ -158,7 +158,7 @@ - + @@ -184,11 +184,11 @@ <% for (Iterator entries = roster.getEntries(); entries.hasNext();) { - RosterEntry entry = (RosterEntry)entries.next(); - Iterator presences = roster.getPresences(entry.getUser()); - if (presences != null) { - while (presences.hasNext()) { - Presence presence = (Presence)presences.next(); %> + RosterEntry entry = (RosterEntry)entries.next(); + Iterator presences = roster.getPresences(entry.getUser()); + if (presences != null) { + while (presences.hasNext()) { + Presence presence = (Presence)presences.next(); %> @@ -208,10 +208,10 @@ <% // Show other presences of the current user - Iterator presences = roster.getPresences(conn.getUser()); - if (presences != null) { - while (presences.hasNext()) { - Presence presence = (Presence)presences.next(); %> + Iterator presences = roster.getPresences(conn.getUser()); + if (presences != null) { + while (presences.hasNext()) { + Presence presence = (Presence)presences.next(); %>
Group: <%= group.getName()%>Add contact to group
<%= entry.getUser()%> <%= entry.getName()%> <%= entry.getType()%>Move entry to other groupGroups management Remove contact from the group Remove contact from the roster
<%= entry.getUser()%> <%= entry.getName()%> <%= entry.getType()%>Move entry to a groupGroups management   Remove contact from roster
 
<%= presence.getFrom()%> <%= presence.getMode()%> 
<%= presence.getFrom()%> <%= presence.getMode()%>