mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +01:00
Fixed smack sample for updated API
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11233 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
7d4389c544
commit
d334ab0c2a
2 changed files with 11 additions and 11 deletions
|
@ -193,8 +193,8 @@
|
||||||
<%
|
<%
|
||||||
RosterEntry entry = roster.getEntry(user);
|
RosterEntry entry = roster.getEntry(user);
|
||||||
RosterGroup group;
|
RosterGroup group;
|
||||||
for (Iterator it=entry.getGroups(); it.hasNext();) {
|
for (Iterator<RosterGroup> it=entry.getGroups().iterator(); it.hasNext();) {
|
||||||
group = (RosterGroup) it.next();%>
|
group = it.next();%>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center" width="80%" class=text height=16><%=group.getName()%></td>
|
<td align="center" width="80%" class=text height=16><%=group.getName()%></td>
|
||||||
<td valign="middle" align="center" width="20%"><a href="moveContact.jsp?action=delete&user=<%=user%>&fromGroup=<%=group.getName()%>"><img src="images/garbage.png" alt="Remove contact from the group" border="0"></a></td>
|
<td valign="middle" align="center" width="20%"><a href="moveContact.jsp?action=delete&user=<%=user%>&fromGroup=<%=group.getName()%>"><img src="images/garbage.png" alt="Remove contact from the group" border="0"></a></td>
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
|
|
||||||
// Close the connection to the XMPP server
|
// Close the connection to the XMPP server
|
||||||
if ("close".equals(action)) {
|
if ("close".equals(action)) {
|
||||||
conn.close();
|
conn.disconnect();
|
||||||
session.invalidate();
|
session.invalidate();
|
||||||
response.sendRedirect("login.jsp");
|
response.sendRedirect("login.jsp");
|
||||||
return;
|
return;
|
||||||
|
@ -118,8 +118,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td> <TABLE cellSpacing=0 borderColorDark=#E0E0E0 cellPadding=0 width=100% align=center borderColorLight=#000000 border=1>
|
<td> <TABLE cellSpacing=0 borderColorDark=#E0E0E0 cellPadding=0 width=100% align=center borderColorLight=#000000 border=1>
|
||||||
<% for (Iterator groups = roster.getGroups(); groups.hasNext();) {
|
<% for (Iterator<RosterGroup> groups = roster.getGroups().iterator(); groups.hasNext();) {
|
||||||
RosterGroup group = (RosterGroup)groups.next();%>
|
RosterGroup group = groups.next();%>
|
||||||
<tr>
|
<tr>
|
||||||
<td bgcolor="#AAAAAA" colspan="6" class=text id=white height=16>Group:
|
<td bgcolor="#AAAAAA" colspan="6" class=text id=white height=16>Group:
|
||||||
<%= group.getName()%></td>
|
<%= group.getName()%></td>
|
||||||
|
@ -130,8 +130,8 @@
|
||||||
<TD class=text id=white height=16>Subscription</TD>
|
<TD class=text id=white height=16>Subscription</TD>
|
||||||
<TD colspan="3" class=text id=white height=16><a href="addContact.jsp?group1=<%=group.getName()%>"><img src="images/businessman_add.png" alt="Add contact to group" border="0"></a></TD>
|
<TD colspan="3" class=text id=white height=16><a href="addContact.jsp?group1=<%=group.getName()%>"><img src="images/businessman_add.png" alt="Add contact to group" border="0"></a></TD>
|
||||||
</TR>
|
</TR>
|
||||||
<% for (Iterator it = group.getEntries(); it.hasNext();) {
|
<% for (Iterator<RosterEntry> it = group.getEntries().iterator(); it.hasNext();) {
|
||||||
RosterEntry entry = (RosterEntry)it.next();%>
|
RosterEntry entry = it.next();%>
|
||||||
<TR vAlign=center align=middle bgColor=#ffffff>
|
<TR vAlign=center align=middle bgColor=#ffffff>
|
||||||
<TD class=text height=16><%= entry.getUser()%></TD>
|
<TD class=text height=16><%= entry.getUser()%></TD>
|
||||||
<TD class=text height=16><%= entry.getName()%></TD>
|
<TD class=text height=16><%= entry.getName()%></TD>
|
||||||
|
@ -152,8 +152,8 @@
|
||||||
<TD class=text id=white height=16>Subscription</TD>
|
<TD class=text id=white height=16>Subscription</TD>
|
||||||
<TD colspan="3" class=text id=white height=16><a href="addContact.jsp"><img src="images/businessman_add.png" alt="Add contact" border="0"></a></TD>
|
<TD colspan="3" class=text id=white height=16><a href="addContact.jsp"><img src="images/businessman_add.png" alt="Add contact" border="0"></a></TD>
|
||||||
</TR>
|
</TR>
|
||||||
<% for (Iterator it = roster.getUnfiledEntries(); it.hasNext();) {
|
<% for (Iterator<RosterEntry> it = roster.getUnfiledEntries().iterator(); it.hasNext();) {
|
||||||
RosterEntry entry = (RosterEntry)it.next();%>
|
RosterEntry entry = it.next();%>
|
||||||
<tr vAlign=center align=middle bgColor=#ffffff>
|
<tr vAlign=center align=middle bgColor=#ffffff>
|
||||||
<td class=text height=16><%= entry.getUser()%></td>
|
<td class=text height=16><%= entry.getUser()%></td>
|
||||||
<td class=text height=16><%= entry.getName()%></td>
|
<td class=text height=16><%= entry.getName()%></td>
|
||||||
|
@ -183,8 +183,8 @@
|
||||||
<TD class=text id=white height=16>Type</TD>
|
<TD class=text id=white height=16>Type</TD>
|
||||||
<TD class=text id=white height=16> </TD>
|
<TD class=text id=white height=16> </TD>
|
||||||
</TR>
|
</TR>
|
||||||
<% for (Iterator entries = roster.getEntries(); entries.hasNext();) {
|
<% for (Iterator<RosterEntry> entries = roster.getEntries().iterator(); entries.hasNext();) {
|
||||||
RosterEntry entry = (RosterEntry)entries.next();
|
RosterEntry entry = entries.next();
|
||||||
Iterator presences = roster.getPresences(entry.getUser());
|
Iterator presences = roster.getPresences(entry.getUser());
|
||||||
if (presences != null) {
|
if (presences != null) {
|
||||||
while (presences.hasNext()) {
|
while (presences.hasNext()) {
|
||||||
|
|
Loading…
Reference in a new issue