Commit Diff


commit - 83f50f9ec20d57e8b630870fd387d03151aaab96
commit + 55f65d3737aa52ef16b59d5e1505e26f6653586b
blob - 5abe85d3d47912a943723f33460d87c12ecffa8e
blob + b4fc122ae95d19c35f9c2e804648aa48d8483ac2
--- src/apps/default/admin/config/expert.jsp
+++ src/apps/default/admin/config/expert.jsp
@@ -1,16 +1,13 @@
-<%@ page import="java.util.*,
-                 snipsnap.api.config.Configuration,
-                 java.text.SimpleDateFormat"%>
- <%--
-  ** Expert Settings
-  ** @author Matthias L. Jugel
-  ** @version $Id$
-  --%>
+<%--
+** Expert Settings
+** @author Matthias L. Jugel
+** @version $Id$
+--%>
 
 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
 <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
 
-<fmt:setBundle basename="i18n.setup" scope="page" />
+<fmt:setBundle basename="i18n.setup" scope="page"/>
 
 <table>
   <tr>
@@ -19,16 +16,16 @@
       <fmt:message key="config.app.auth"/><br/>
       <select name="app.auth">
         <option value="Cookie"
-          <c:if test="${newconfig.auth == 'Cookie'}">selected="selected"</c:if>>
+                <c:if test="${newconfig.auth == 'Cookie'}">selected="selected"</c:if>>
           <fmt:message key="config.app.auth.cookie"/></option>
         <option value="Basic"
-          <c:if test="${newconfig.auth == 'Basic'}">selected="selected"</c:if>>
+                <c:if test="${newconfig.auth == 'Basic'}">selected="selected"</c:if>>
           <fmt:message key="config.app.auth.basic"/></option>
         <option value="Digest"
-          <c:if test="${newconfig.auth == 'Digest'}">selected="selected"</c:if>>
+                <c:if test="${newconfig.auth == 'Digest'}">selected="selected"</c:if>>
           <fmt:message key="config.app.auth.digest"/></option>
         <option value="Certificate"
-          <c:if test="${newconfig.auth == 'Certificate'}">selected="selected"</c:if>>
+                <c:if test="${newconfig.auth == 'Certificate'}">selected="selected"</c:if>>
           <fmt:message key="config.app.auth.certificate"/></option>
       </select>
       <%--
@@ -47,7 +44,8 @@
     <td><fmt:message key="config.app.perm.createSnip.text"/></td>
     <td>
       <fmt:message key="config.app.perm.createSnip"/><br/>
-      <input type="checkbox" value="allow" name="app.perm.createSnip" <c:if test="${newconfig.permCreateSnip == 'allow'}">checked="checked"</c:if>>
+      <input type="checkbox" value="allow" name="app.perm.createSnip"
+      <c:if test="${newconfig.permCreateSnip == 'allow'}"> checked="checked"</c:if>>
     </td>
   </tr>
   <tr>
@@ -56,18 +54,20 @@
       <fmt:message key="config.app.logger"/><br/>
       <select name="app.logger">
         <option value="org.radeox.util.logging.NullLogger"
-          <c:if test="${newconfig.logger == 'org.radeox.util.logging.NullLogger'}">selected="selected"</c:if>>
+                <c:if test="${newconfig.logger == 'org.radeox.util.logging.NullLogger'}">selected="selected"</c:if>>
           <fmt:message key="config.logger.none"/></option>
         <option value="org.radeox.util.logging.SystemErrLogger"
-          <c:if test="${newconfig.logger == 'org.radeox.util.logging.SystemErrLogger'}">selected="selected"</c:if>>
+                <c:if test="${newconfig.logger == 'org.radeox.util.logging.SystemErrLogger'}">
+                  selected="selected"</c:if>>
           <fmt:message key="config.logger.system.err"/></option>
         <option value="org.radeox.util.logging.SystemOutLogger"
-          <c:if test="${newconfig.logger == 'org.radeox.util.logging.SystemOutLogger'}">selected="selected"</c:if>>
+                <c:if test="${newconfig.logger == 'org.radeox.util.logging.SystemOutLogger'}">
+                  selected="selected"</c:if>>
           <fmt:message key="config.logger.system.out"/></option>
-<%--        <option value="org.snipsnap.util.log.ApplicationLogger"--%>
-<%--          <c:if test="${newconfig.logger == 'org.snipsnap.util.log.ApplicationLogger'}">selected="selected"</c:if>>--%>
-<%--          <fmt:message key="config.logger.application"/></option>--%>
-      </input>
+        <%--        <option value="org.snipsnap.util.log.ApplicationLogger"--%>
+        <%--          <c:if test="${newconfig.logger == 'org.snipsnap.util.log.ApplicationLogger'}">selected="selected"</c:if>>--%>
+        <%--          <fmt:message key="config.logger.application"/></option>--%>
+      </select>
     </td>
   </tr>
   <tr>
@@ -76,12 +76,12 @@
       <fmt:message key="config.app.cache"/><br/>
       <select disabled="disabled" name="app.cache">
         <option value="full"
-          <c:if test="${newconfig.cache == 'full'}">checked="checked"</c:if>>
+                <c:if test="${newconfig.cache == 'full'}">checked="checked"</c:if>>
           <fmt:message key="config.caching.full"/></option>
         <option value="cache"
-          <c:if test="${newconfig.cache == 'cache'}">checked="checked"</c:if>>
+                <c:if test="${newconfig.cache == 'cache'}">checked="checked"</c:if>>
           <fmt:message key="config.caching.cache"/></option>
-      </input>
+      </select>
     </td>
   </tr>
   <tr>
@@ -91,9 +91,11 @@
       <select disabled="disabled" name="app.encoding">
         <option value="UTF-8" <c:if test="${newconfig.encoding == 'UTF-8'}">checked="checked"</c:if>>UTF-8</option>
         <option value="UTF-16" <c:if test="${newconfig.encoding == 'UTF-16'}">checked="checked"</c:if>>UTF-16</option>
-        <option value="ISO-8859-1" <c:if test="${newconfig.encoding == 'ISO-8859-1'}">checked="checked"</c:if>>ISO 8859-1</option>
-        <option value="US-ASCII" <c:if test="${newconfig.encoding == 'US-ASCII'}">checked="checked"</c:if>>US-ASCII</option>
-      </input>
+        <option value="ISO-8859-1" <c:if test="${newconfig.encoding == 'ISO-8859-1'}">checked="checked"</c:if>>ISO
+          8859-1</option>
+        <option value="US-ASCII" <c:if test="${newconfig.encoding == 'US-ASCII'}">checked="checked"</c:if>>
+          US-ASCII</option>
+      </select>
     </td>
   </tr>
 </table>
\ No newline at end of file