Author: lukaszlenart Date: Sat Oct 23 20:33:00 2010 New Revision: 1026677 URL: http://svn.apache.org/viewvc?rev=1026677&view=rev Log: Solved WW-3449 - supressEmptyParameters in a redirectAction doesn't work
Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/ServletRedirectResult.java Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/ServletRedirectResult.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/ServletRedirectResult.java?rev=1026677&r1=1026676&r2=1026677&view=diff ============================================================================== --- struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/ServletRedirectResult.java (original) +++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/ServletRedirectResult.java Sat Oct 23 20:33:00 2010 @@ -198,9 +198,6 @@ public class ServletRedirectResult exten Map.Entry e = (Map.Entry) i.next(); if (!getProhibitedResultParams().contains(e.getKey())) { - requestParameters.put(e.getKey().toString(), - e.getValue() == null ? "" : - conditionalParse(e.getValue().toString(), invocation)); String potentialValue = e.getValue() == null ? "" : conditionalParse(e.getValue().toString(), invocation); if (!supressEmptyParameters || ((potentialValue != null) && (potentialValue.length() > 0))) { requestParameters.put(e.getKey().toString(), potentialValue);