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: ">