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 @@
  *  &lt;s:form action=&quot;baz&quot;&gt;
  *      &lt;s:textfield label=&quot;Enter your name&quot; name=&quot;person.name&quot;/&gt;
  *      &lt;s:submit value=&quot;Create person&quot;/&gt;
- *      &lt;s:submit name=&quot;redirect-action:dashboard&quot; value=&quot;Cancel&quot;/&gt;
+ *      &lt;s:submit name=&quot;redirectAction:dashboard&quot; value=&quot;Cancel&quot;/&gt;
  *  &lt;/s:form&gt;
  *  &lt;!-- END SNIPPET: redirect-action-example --&gt;
  * </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;