anchor.diff:  <c:set var="admin" value="${admin.manager}" />
   <% admin.init(request, response, session, application, out ); %>
   
  +<%  // Get parameters
  +    boolean save = request.getParameter("save") != null;
  +    boolean success = request.getParameter("success") != null;
  +    String name = ParamUtils.getParameter(request,"servername");
  +    String muc = ParamUtils.getParameter(request,"mucname");
  +
  +    // Handle a save
  +    Map errors = new HashMap();
  +    if (save) {
  +        // do validation
  +        System.err.println("muc: " + muc);
  +        if (muc == null  || muc.indexOf('.') >= 0) {
  +            errors.put("mucname","mucname");
  +        }
  +        if (errors.size() == 0) {
  +            admin.getMultiUserChatServer().setServiceName(muc);
  +            response.sendRedirect("muc-server-props-edit-form.jsp?success=true");
  +            return;
  +        }
  +    }
  +    else {
  +        name = admin.getServerInfo().getName() == null ? "" : admin.getServerInfo().getName();
  +        muc = admin.getMultiUserChatServer().getServiceName() == null  ? "" : admin.getMultiUserChatServer().getServiceName();
  +        // Remove the server address part from the MUC domain name.
  +        int index = muc.indexOf("." + name);
  +        if (index > 0) {
  +            muc = muc.substring(0, index);
  +        }
  +    }
  +
  +    name = admin.getServerInfo().getName();
  +    if (errors.size() == 0) {
  +        muc = admin.getMultiUserChatServer().getServiceName();
  +        int pos = muc.lastIndexOf("." + name);
  +        muc = muc.substring(0, pos);
  +    }
  +%>
  +
   <jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" />
   <%  // Title of this page and breadcrumbs
       String title = "Group Chat Properties";
  
positive.code: <jsp:include page="top.jsp" flush="true" />
  <jsp:include page="title.jsp" flush="true" />
  
  
  <%  // Get parameters
      boolean save = ParamUtils.getBooleanParameter(request,"save");
      boolean success = false;
      String name = ParamUtils.getParameter(request,"servername");
      String muc = ParamUtils.getParameter(request,"mucname");
  
      // Handle a save
      Map errors = new HashMap();
      if (save) {
          // do validation
          if (muc == null  || muc.indexOf('.') >= 0) {
              errors.put("mucname","mucname");
          }
          if (errors.size() == 0) {
              admin.getMultiUserChatServer().setServiceName(muc);
              success = true;
          }
             name = admin.getServerInfo().getName() == null ? "" : admin.getServerInfo().getName();
      }
      else {
          name = admin.getServerInfo().getName() == null ? "" : admin.getServerInfo().getName();
          muc = admin.getMultiUserChatServer().getServiceName() == null  ? "" : admin.getMultiUserChatServer().getServiceName();
          // Remove the server address part from the MUC domain name.
          int index = muc.indexOf("." + name);
          if (index > 0) {
              muc = muc.substring(0, index);
          }
      }
  %>
  
  
  <br>
  
  <%  if (success) { %>
  
      <p class="jive-success-text">
      Server properties edited successfully. You must restart the server in order for
      the changes to take effect (see <a href="server-status.jsp">Server Status</a>).
      </p>
  
  <%  } %>
  
  
negative.code: 
  <br>
  
  <input type="submit" name="save" value="Save Properties">
  <input type="submit" name="cancel" value="Cancel">
  
  </form>
  