Author: michiel
Date: 2010-07-12 14:34:03 +0200 (Mon, 12 Jul 2010)
New Revision: 42862

Modified:
   
mmbase/branches/MMBase-1_9/applications/taglib/src/main/java/org/mmbase/bridge/jsp/taglib/util/ContextContainer.java
Log:
dubgging only

Modified: 
mmbase/branches/MMBase-1_9/applications/taglib/src/main/java/org/mmbase/bridge/jsp/taglib/util/ContextContainer.java
===================================================================
--- 
mmbase/branches/MMBase-1_9/applications/taglib/src/main/java/org/mmbase/bridge/jsp/taglib/util/ContextContainer.java
        2010-07-12 12:26:28 UTC (rev 42861)
+++ 
mmbase/branches/MMBase-1_9/applications/taglib/src/main/java/org/mmbase/bridge/jsp/taglib/util/ContextContainer.java
        2010-07-12 12:34:03 UTC (rev 42862)
@@ -527,11 +527,12 @@
     public static Object fixEncoding(Object value, PageContext pageContext) 
throws TaglibException {
         HttpServletRequest req = (HttpServletRequest) pageContext.getRequest();
         String enc = req.getCharacterEncoding();
+
         if (enc == null) {
             enc = getDefaultCharacterEncoding(pageContext);
         } else {
             // I think this happens seldom, if ever.
-            log.debug("form encoding specified: " + enc);
+            log.debug("form encoding specified: " + enc + " no need to fix 
anything for " + value);
             // but _if_ it happens, don't try to be smarter then the servlet 
container. It would have handled it correctly then.
             return value;
         }
@@ -607,12 +608,14 @@
             HttpServletRequest req = (HttpServletRequest) 
pageContext.getRequest();
             String[] resultvec = req.getParameterValues(referId);
             if (resultvec != null) {
-                if (log.isDebugEnabled()) log.debug("Found: " + resultvec);
                 if (resultvec.length > 1) {
                     result = fixEncoding(java.util.Arrays.asList(resultvec), 
pageContext);
                 } else {
                     result = fixEncoding(resultvec[0], pageContext);
                 }
+                if (log.isDebugEnabled()) {
+                    log.debug("Found: " + Arrays.asList(resultvec));
+                }
             }
         }
         break;

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to