svn commit: r671054 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilJ2eeCompat.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r671054 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilJ2eeCompat.java

jacopoc
Author: jacopoc
Date: Tue Jun 24 01:02:30 2008
New Revision: 671054

URL: http://svn.apache.org/viewvc?rev=671054&view=rev
Log:
Applied part of patch created by Joe Eckard in OFBIZ-1791: server info strings returned by the ServletContext are now compared ignoring case.

Modified:
    ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilJ2eeCompat.java

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilJ2eeCompat.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilJ2eeCompat.java?rev=671054&r1=671053&r2=671054&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilJ2eeCompat.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilJ2eeCompat.java Tue Jun 24 01:02:30 2008
@@ -28,14 +28,14 @@
     
     public static final String module = UtilJ2eeCompat.class.getName();
 
-    public static final String TOMCAT = "Apache Tomcat";
-    public static final String ORION = "Orion";
-    public static final String RESIN = "Resin";
-    public static final String REX_IP = "TradeCity";
-    public static final String OC4J = "Oracle";
-    public static final String JRUN = "JRun";
-    public static final String JETTY = "Jetty";
-    public static final String WEBSPHERE = "Websphere";
+    public static final String TOMCAT = "apache tomcat";
+    public static final String ORION = "orion";
+    public static final String RESIN = "resin";
+    public static final String REX_IP = "tradecity";
+    public static final String OC4J = "oracle";
+    public static final String JRUN = "jrun";
+    public static final String JETTY = "jetty";
+    public static final String WEBSPHERE = "websphere";
 
     protected static Boolean doFlushOnRenderValue = null;
     protected static Boolean useOutputStreamNotWriterValue = null;
@@ -64,7 +64,7 @@
             boolean usestream = true;
             boolean nestjspexception = true;
             // if context is null use an empty string here which will cause the defaults to be used
-            String serverInfo = context == null ? "" : context.getServerInfo();
+            String serverInfo = context == null ? "" : context.getServerInfo().toLowerCase();
 
             Debug.logInfo("serverInfo: " + serverInfo, module);