From 0d2ed0ed9656beaa5eed82efa414c2eaaa971e17 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Wed, 7 Mar 2007 19:27:03 +0000 Subject: [PATCH] Fixed for updated API. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7394 b35dd754-fafc-0310-a699-88a17e54d16e --- sample/web/login.jsp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sample/web/login.jsp b/sample/web/login.jsp index fdaa79aa3..b904139e5 100644 --- a/sample/web/login.jsp +++ b/sample/web/login.jsp @@ -72,11 +72,12 @@ XMPPConnection.DEBUG_ENABLED = "Yes".equals(debug); try { if ("No".equals(ssl)) { - conn = new XMPPConnection(host, Integer.parseInt(port)); + conn = new XMPPConnection(host); } else { - conn = new SSLXMPPConnection(host, Integer.parseInt(port)); + conn = new XMPPConnection(host); } + conn.connect(); // Add listener for messages (offline messages will be listen here) // Set the roster subscription mode to use @@ -126,8 +127,9 @@ Information - - + + +
+ + @@ -177,8 +179,8 @@ - -
Host: ">