You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2009/06/23 01:04:51 UTC

svn commit: r787436 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java

Author: lektran
Date: Mon Jun 22 23:04:51 2009
New Revision: 787436

URL: http://svn.apache.org/viewvc?rev=787436&view=rev
Log:
Clean up the mess that I just made :-/

Modified:
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java?rev=787436&r1=787435&r2=787436&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java Mon Jun 22 23:04:51 2009
@@ -551,11 +551,11 @@
                 }
                 if (urlParams != null) {
                     for (Map.Entry<String, Object> urlParamEntry: urlParams.entrySet()) {
-                        String key = (String) request.getAttribute(urlParamEntry.getKey());
+                        String key = urlParamEntry.getKey();
                         // Don't overwrite messages coming from the current event
                         if (!("_EVENT_MESSAGE".equals(key) || "_ERROR_MESSAGE_".equals(key)
                                 || "_EVENT_MESSAGE_LIST_".equals(key) || "_ERROR_MESSAGE_LIST".equals(key))) {
-                            request.setAttribute(urlParamEntry.getKey(), urlParamEntry.getValue());
+                            request.setAttribute(key, urlParamEntry.getValue());
                         }
                     }
                 }