struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgie...@apache.org
Subject svn commit: r565695 - /struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Form.java
Date Tue, 14 Aug 2007 10:21:54 GMT
Author: rgielen
Date: Tue Aug 14 03:21:53 2007
New Revision: 565695

URL: http://svn.apache.org/viewvc?view=rev&rev=565695
Log:
WW-2109:
"Intelligent" id resolution for <s:form> does not work as documented

Modified:
    struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Form.java

Modified: struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Form.java
URL: http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Form.java?view=diff&rev=565695&r1=565694&r2=565695
==============================================================================
--- struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Form.java
(original)
+++ struts/struts2/branches/STRUTS_2_0_X/core/src/main/java/org/apache/struts2/components/Form.java
Tue Aug 14 03:21:53 2007
@@ -228,6 +228,8 @@
 
         if (id != null) {
             addParameter("id", escape(id));
+        } else if ( action != null ) {
+            addParameter("id", escape(action));
         }
         if (Dispatcher.getInstance().isPortletSupportActive() && PortletActionContext.isPortletRequest())
{
             evaluateExtraParamsPortletRequest(namespace, action);



Mime
View raw message