You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by mr...@apache.org on 2006/07/19 00:24:28 UTC
svn commit: r423270 - in /struts/struts2/trunk/core/src:
main/java/org/apache/struts2/components/ main/resources/template/simple/
test/resources/org/apache/struts2/views/jsp/ui/
Author: mrdon
Date: Tue Jul 18 15:24:26 2006
New Revision: 423270
URL: http://svn.apache.org/viewvc?rev=423270&view=rev
Log:
Making the form method "POST" by default
WW-1309 WW-1343
Modified:
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Form.java
struts/struts2/trunk/core/src/main/resources/template/simple/form.ftl
struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-4.txt
struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-7.txt
Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Form.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Form.java?rev=423270&r1=423269&r2=423270&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Form.java (original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Form.java Tue Jul 18 15:24:26 2006
@@ -411,7 +411,6 @@
* HTML form method attribute
*
* @a2.tagattribute required="false"
- * @deprecated Since Struts 2.0.0
*/
public void setMethod(String method) {
this.method = method;
Modified: struts/struts2/trunk/core/src/main/resources/template/simple/form.ftl
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/simple/form.ftl?rev=423270&r1=423269&r2=423270&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/main/resources/template/simple/form.ftl (original)
+++ struts/struts2/trunk/core/src/main/resources/template/simple/form.ftl Tue Jul 18 15:24:26 2006
@@ -26,6 +26,7 @@
</#if>
<#if parameters.method?exists>
method="${parameters.method?html}"<#rt/>
+<#else>method="POST"<#rt/>
</#if>
<#if parameters.enctype?exists>
enctype="${parameters.enctype?html}"<#rt/>
Modified: struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-4.txt
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-4.txt?rev=423270&r1=423269&r2=423270&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-4.txt (original)
+++ struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-4.txt Tue Jul 18 15:24:26 2006
@@ -1,4 +1,4 @@
-<form id="foo" onsubmit="return true;" action="/foo.jsp">
+<form id="foo" onsubmit="return true;" action="/foo.jsp" method="POST">
<table class="wwFormTable">
</table>
</form>
Modified: struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-7.txt
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-7.txt?rev=423270&r1=423269&r2=423270&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-7.txt (original)
+++ struts/struts2/trunk/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-7.txt Tue Jul 18 15:24:26 2006
@@ -1,4 +1,4 @@
-<form id="test" onsubmit="return true;" action="test.html">
+<form id="test" onsubmit="return true;" action="test.html" method="POST">
<table class="wwFormTable">
</table>
</form>