anchor.diff:  
   <%  // Get parameters
       String domain = ParamUtils.getParameter(request,"domain");
  -    int port = ParamUtils.getIntParameter(request,"port",-1);
       int embeddedPort = ParamUtils.getIntParameter(request,"embeddedPort",-1);
  -    int sslPort = ParamUtils.getIntParameter(request,"sslPort",-1);
       boolean sslEnabled = ParamUtils.getBooleanParameter(request,"sslEnabled",true);
   
       boolean doContinue = request.getParameter("continue") != null;
  
positive.code:          value="<%= ((domain != null) ? domain : "") %>">
          <span class="jive-description">
          <br>
          Hostname or IP address of the IM server.
          </span>
      </td>
  </tr>
  <tr valign="top">
      <td width="1%" nowrap>
          Server Port:
          <%  if (errors.get("port") != null) { %>
  
              <span class="jive-error-text"><br>
              Invalid port number.
              </span>
  
          <%  } %>
      </td>
      <td width="99%">
          <input type="text" size="6" maxlength="6" name="port"
           value="<%= ((port != -1) ? ""+port : "5222") %>">
          <span class="jive-description">
          <br>
          Port number this server listens to. Default XMPP port is 5222.
          </span>
      </td>
  </tr>
  
negative.code:         if (domain == null) {
              errors.put("domain","domain");
          }
          if (embeddedPort < 0) {
              errors.put("embeddedPort","embeddedPort");
          }
          // Continue if there were no errors
          if (errors.size() == 0) {
              Map xmppSettings = new HashMap();
  
              xmppSettings.put("xmpp.domain",domain);
              xmppSettings.put("embedded-web.port",Integer.toString(embeddedPort));
              xmppSettings.put("xmpp.socket.ssl.active",""+sslEnabled);
              xmppSettings.put("xmpp.auth.anonymous", "true" );
              session.setAttribute("xmppSettings", xmppSettings);
  
  