You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by we...@apache.org on 2009/05/29 20:52:29 UTC
svn commit: r780066 -
/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.java
Author: wesw
Date: Fri May 29 18:52:29 2009
New Revision: 780066
URL: http://svn.apache.org/viewvc?rev=780066&view=rev
Log:
WW-3137 adding consistency by making DefaultActionMapper understand redirectAction rather than redirect-action
Modified:
struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.java
Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.java?rev=780066&r1=780065&r2=780066&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.java (original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.java Fri May 29 18:52:29 2009
@@ -58,7 +58,7 @@
*
* <li>Redirect prefix - <i>redirect:cancel.jsp</i></li>
*
- * <li>Redirect-action prefix - <i>redirect-action:cancel</i></li>
+ * <li>Redirect-action prefix - <i>redirectAction:cancel</i></li>
*
* </ul>
*
@@ -151,7 +151,7 @@
* <s:form action="baz">
* <s:textfield label="Enter your name" name="person.name"/>
* <s:submit value="Create person"/>
- * <s:submit name="redirect-action:dashboard" value="Cancel"/>
+ * <s:submit name="redirectAction:dashboard" value="Cancel"/>
* </s:form>
* <!-- END SNIPPET: redirect-action-example -->
* </pre>
@@ -165,7 +165,7 @@
protected static final String REDIRECT_PREFIX = "redirect:";
- protected static final String REDIRECT_ACTION_PREFIX = "redirect-action:";
+ protected static final String REDIRECT_ACTION_PREFIX = "redirectAction:";
protected boolean allowDynamicMethodCalls = true;