You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ma...@apache.org on 2005/03/23 06:13:28 UTC

svn commit: r158727 - struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/FormTag.java

Author: martinc
Date: Tue Mar 22 21:13:26 2005
New Revision: 158727

URL: http://svn.apache.org/viewcvs?view=rev&rev=158727
Log:
Port the fix for Bugzilla #34027 to the 1.2.X branch.

Modified:
    struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/FormTag.java

Modified: struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/FormTag.java
URL: http://svn.apache.org/viewcvs/struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/FormTag.java?view=diff&r1=158726&r2=158727
==============================================================================
--- struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/FormTag.java (original)
+++ struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/FormTag.java Tue Mar 22 21:13:26 2005
@@ -475,7 +475,9 @@
         StringBuffer results = new StringBuffer("<form");
 
         // render attributes
-        renderName(results);
+        if (!this.isXhtml()) {
+            renderName(results);
+        }
         renderAttribute(results, "method", getMethod() == null ? "post" : getMethod());
         renderAction(results);
         renderAttribute(results, "accept-charset", getAcceptCharset());



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org