anchor.diff:                  </td>
                   <td><label for="allowpm"><fmt:message key="muc.default.settings.allowpm" /></label>
                       <select name="roomconfig_allowpm" id="allowpm">
  -                        <option value="none" <% if ("none".equals( MUCPersistenceManager.getProperty(mucname, "room.allowpm", "anyone") )) out.write("selected");%>><fmt:message key="muc.default.settings.none" /></option>
  -                        <option value="moderators" <% if ("moderators".equals( MUCPersistenceManager.getProperty(mucname, "room.allowpm", "anyone") )) out.write("selected");%>><fmt:message key="muc.default.settings.moderator" /></option>
  -                        <option value="participants" <% if ("participants".equals( MUCPersistenceManager.getProperty(mucname, "room.allowpm", "anyone") )) out.write("selected");%>><fmt:message key="muc.default.settings.participant" /></option>
  -                        <option value="anyone" <% if ("anyone".equals( MUCPersistenceManager.getProperty(mucname, "room.allowpm", "anyone") )) out.write("selected");%>><fmt:message key="muc.default.settings.anyone" /></option>
  +                        <option value="none" ${allowpm eq 'none' ? 'selected' : ''}><fmt:message key="muc.default.settings.none" /></option>
  +                        <option value="moderators" ${allowpm eq 'moderators' ? 'selected' : ''}><fmt:message key="muc.default.settings.moderator" /></option>
  +                        <option value="participants" ${allowpm eq 'participants' ? 'selected' : ''}><fmt:message key="muc.default.settings.participant" /></option>
  +                        <option value="anyone" ${allowpm eq 'anyone' ? 'selected' : ''}><fmt:message key="muc.default.settings.anyone" /></option>
                       </select>
                   </td>
               </tr>
           </tbody>
           </table>
  -    </div>
  +    </admin:contentBox>
       <input type="submit" value="<fmt:message key="global.save_settings" />">
  -</form>
  -<!-- END 'Default Room Settings' -->
  +
  +    </form>
  +    <!-- END 'Default Room Settings' -->
   
   </body>
   </html>
  
positive.code: %>
  <%@ page import="java.net.URLEncoder" %>
  
  <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
  <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
  <% webManager.init(request, response, session, application, out ); %>
  
  
negative.code:         response.sendRedirect("muc-default-settings.jsp?success=true&mucname="+URLEncoder.encode(mucname, "UTF-8"));
          return;
      }
  
      pageContext.setAttribute("errors", errors);
      pageContext.setAttribute("success", success);
      pageContext.setAttribute("mucname", mucname);
      pageContext.setAttribute("publicRoom", MUCPersistenceManager.getBooleanProperty(mucname, "room.publicRoom", true));
      pageContext.setAttribute("persistent", MUCPersistenceManager.getBooleanProperty(mucname, "room.persistent", false));
      pageContext.setAttribute("moderated", MUCPersistenceManager.getBooleanProperty(mucname, "room.moderated", false));
      pageContext.setAttribute("membersOnly", MUCPersistenceManager.getBooleanProperty(mucname, "room.membersOnly", false));
      pageContext.setAttribute("canAnyoneDiscoverJID", MUCPersistenceManager.getBooleanProperty(mucname, "room.canAnyoneDiscoverJID", true));
      pageContext.setAttribute("canOccupantsInvite", MUCPersistenceManager.getBooleanProperty(mucname, "room.canOccupantsInvite", false));
      pageContext.setAttribute("canOccupantsChangeSubject", MUCPersistenceManager.getBooleanProperty(mucname, "room.canOccupantsChangeSubject", false));
      pageContext.setAttribute("loginRestrictedToNickname", MUCPersistenceManager.getBooleanProperty(mucname, "room.loginRestrictedToNickname", false));
      pageContext.setAttribute("canChangeNickname", MUCPersistenceManager.getBooleanProperty(mucname, "room.canChangeNickname", true));
      pageContext.setAttribute("registrationEnabled", MUCPersistenceManager.getBooleanProperty(mucname, "room.registrationEnabled", true));
      pageContext.setAttribute("logEnabled", MUCPersistenceManager.getBooleanProperty(mucname, "room.logEnabled", true));
      pageContext.setAttribute("maxUsers", MUCPersistenceManager.getIntProperty(mucname, "room.maxUsers", 30));
      pageContext.setAttribute("broadcastModerator", MUCPersistenceManager.getBooleanProperty(mucname, "room.broadcastModerator", true));
      pageContext.setAttribute("broadcastParticipant", MUCPersistenceManager.getBooleanProperty(mucname, "room.broadcastParticipant", true));
      pageContext.setAttribute("broadcastVisitor", MUCPersistenceManager.getBooleanProperty(mucname, "room.broadcastVisitor", true));
      pageContext.setAttribute("allowpm", MUCPersistenceManager.getProperty(mucname, "room.allowpm", "anyone"));
      pageContext.setAttribute("xxx", MUCPersistenceManager.getBooleanProperty(mucname, "room.xxx", true));
      pageContext.setAttribute("xxx", MUCPersistenceManager.getBooleanProperty(mucname, "room.xxx", true));
      pageContext.setAttribute("xxx", MUCPersistenceManager.getBooleanProperty(mucname, "room.xxx", true));
  %>
  
  <html>
      <head>
          <title><fmt:message key="muc.default.settings.title"/></title>
          <meta name="subPageID" content="muc-defaultsettings"/>
          <meta name="extraParams" content="<%= "mucname="+URLEncoder.encode(mucname, "UTF-8") %>"/>
          <meta name="helpPage" content="set_group_chat_room_creation_permissions.html"/>
      </head>
  
      <body>
  
      <p>
          <c:url var="mucserviceeditformlink" value="muc-service-edit-form.jsp">
              <c:param name="mucname" value="${mucname}"/>
          </c:url>
          <fmt:message key="muc.default.settings.info" />
          <fmt:message key="groupchat.service.settings_affect" /><b><a href="${mucserviceeditformlink}"><c:out value="${mucname}"/></a></b>
      </p>
  
      <c:choose>
          <c:when test="${not empty errors}">
              <c:forEach var="err" items="${errors}">
                  <admin:infobox type="error">
                      <c:choose>
                          <c:when test="${err.key eq 'csrf'}"><fmt:message key="global.csrf.failed" /></c:when>
                          <c:otherwise><fmt:message key="muc.default.settings.error" /></c:otherwise>
                      </c:choose>
                  </admin:infobox>
              </c:forEach>
          </c:when>
          <c:when test="${success}">
              <admin:infobox type="success">
                  <fmt:message key="muc.default.settings.update" />
              </admin:infobox>
          </c:when>
      </c:choose>
  
      <!-- BEGIN 'Default Room Settings' -->
      <form action="muc-default-settings.jsp?save" method="post">
  
      <input type="hidden" name="csrf" value="${csrf}">
      <input type="hidden" name="mucname" value="${fn:escapeXml(mucname)}" />
  
      <fmt:message key="muc.default.settings.title" var="settingsTitle"/>
      <admin:contentBox title="${settingsTitle}">
          <table cellpadding="3" cellspacing="0" border="0">
              <colgroup>
                  <col style="width: 1%"/>
                  <col style="width: 99%"/>
              </colgroup>
          <tbody>
              <tr>
                  <td><input name="roomconfig_publicroom" value="true" id="publicRoom" type="checkbox" ${publicRoom ? 'checked' : ''}></td>
                  <td><label for="publicRoom"><fmt:message key="muc.default.settings.public_room" /></label></td>
              </tr>
              <tr>
                  <td><input name="roomconfig_persistentroom" value="true" id="persistentRoom" type="checkbox" ${persistent ? 'checked' : ''}></td>
                  <td><label for="persistentRoom"><fmt:message key="muc.default.settings.persistent_room" /></label></td>
              </tr>
              <tr>
                  <td><input name="roomconfig_moderatedroom" value="true" id="moderated" type="checkbox" ${moderated ? 'checked' : ''}></td>
                  <td><label for="moderated"><fmt:message key="muc.default.settings.moderated" /></label></td>
              </tr>
              <tr>
                  <td><input name="roomconfig_membersonly" value="true" id="membersOnly" type="checkbox" ${membersOnly ? 'checked' : ''}></td>
                  <td><label for="membersOnly"><fmt:message key="muc.default.settings.members_only" /></label></td>
              </tr>
              <tr>
                  <td><input name="roomconfig_nonanonymous" value="true" id="nonanonymous" type="checkbox" ${canAnyoneDiscoverJID ? 'checked' : ''}></td>
                  <td><label for="nonanonymous"><fmt:message key="muc.default.settings.can_anyone_discover_jid" /></label></td>
              </tr>
              <tr>
                  <td><input name="roomconfig_allowinvites" value="true" id="allowInvites" type="checkbox" ${canOccupantsInvite ? 'checked' : ''}></td>
                  <td><label for="allowInvites"><fmt:message key="muc.default.settings.allow_invites" /></label></td>
              </tr>
              <tr>
                  <td><input name="roomconfig_changesubject" value="true" id="changeSubject" type="checkbox" ${canOccupantsChangeSubject ? 'checked' : ''}></td>
                  <td><label for="changeSubject"><fmt:message key="muc.default.settings.change_subject" /></label></td>
              </tr>
              <tr>
                  <td><input name="roomconfig_reservednick" value="true" id="reservedNick" type="checkbox" ${loginRestrictedToNickname ? 'checked' : ''}></td>
                  <td><label for="reservedNick"><fmt:message key="muc.default.settings.reserved_nick" /></label></td>
              </tr>
              <tr>
                  <td><input name="roomconfig_canchangenick" value="true" id="canChangeNick" type="checkbox" ${canChangeNickname ? 'checked' : ''}></td>
                  <td><label for="canChangeNick"><fmt:message key="muc.default.settings.can_change_nick" /></label></td>
              </tr>
              <tr>
                  <td><input name="roomconfig_registration" value="true" id="registration" type="checkbox" ${registrationEnabled ? 'checked' : ''}></td>
                  <td><label for="registration"><fmt:message key="muc.default.settings.registration" /></label></td>
              </tr>
              <tr>
                  <td><input name="roomconfig_enablelogging" value="true" id="enableLogging" type="checkbox" ${logEnabled ? 'checked' : ''}></td>
                  <td><label for="enableLogging"><fmt:message key="muc.default.settings.enable_logging" /></label></td>
              </tr>
              <tr>
                  <td>&nbsp;</td>
                  <td>
                      <label for="roomconfig_maxusers"><fmt:message key="muc.default.settings.max_users" />:</label>
                      <input type="number" name="roomconfig_maxusers" id="roomconfig_maxusers" min="1" value="${maxUsers eq 0 ? '' : maxUsers}" size="5">
                      <fmt:message key="muc.room.edit.form.empty_nolimit" />
                  </td>
              </tr>
              <tr>
                  <td><input name="roomconfig_broadcastmoderator" value="true" id="broadcastModerator" type="checkbox" ${broadcastModerator ? 'checked' : ''}></td>
                  <td><label for="broadcastModerator"><fmt:message key="muc.default.settings.broadcast_presence_moderator" /></label></td>
              </tr>
              <tr>
                  <td><input name="roomconfig_broadcastparticipant" value="true" id="broadcastParticipant" type="checkbox" ${broadcastParticipant ? 'checked' : ''}></td>
                  <td><label for="broadcastParticipant"><fmt:message key="muc.default.settings.broadcast_presence_participant" /></label></td>
              </tr>
              <tr>
                  <td><input name="roomconfig_broadcastvisitor" value="true" id="broadcastVisitor" type="checkbox" ${broadcastVisitor ? 'checked' : ''}></td>
                  <td><label for="broadcastVisitor"><fmt:message key="muc.default.settings.broadcast_presence_visitor" /></label></td>
              </tr>
              <tr>
                  <td>
  