struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject svn commit: r780066 - /struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.java
Date Fri, 29 May 2009 18:52:29 GMT
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;
 



Mime
View raw message