You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by pb...@apache.org on 2007/04/23 05:36:54 UTC
svn commit: r531323 -
/struts/struts1/trunk/core/src/main/java/org/apache/struts/action/ActionMapping.java
Author: pbenedict
Date: Sun Apr 22 20:36:54 2007
New Revision: 531323
URL: http://svn.apache.org/viewvc?view=rev&rev=531323
Log:
STR-3025: Enhance documentation for findInputForward
Modified:
struts/struts1/trunk/core/src/main/java/org/apache/struts/action/ActionMapping.java
Modified: struts/struts1/trunk/core/src/main/java/org/apache/struts/action/ActionMapping.java
URL: http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apache/struts/action/ActionMapping.java?view=diff&rev=531323&r1=531322&r2=531323
==============================================================================
--- struts/struts1/trunk/core/src/main/java/org/apache/struts/action/ActionMapping.java (original)
+++ struts/struts1/trunk/core/src/main/java/org/apache/struts/action/ActionMapping.java Sun Apr 22 20:36:54 2007
@@ -23,6 +23,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.config.ActionConfig;
+import org.apache.struts.config.ControllerConfig;
import org.apache.struts.config.ForwardConfig;
import java.util.ArrayList;
@@ -100,14 +101,16 @@
}
/**
- * <p>
- * Create (if necessary) and return an {@link ActionForward} that
+ * <p>Create (if necessary) and return an {@link ActionForward} that
* corresponds to the <code>input</code> property of this Action.
- * If the input parameter is specified, use that, otherwise try
- * to find one in the mapping or the module under the standard
- * conventional "input" name.
+ * <p>
+ * <b>Since Struts 1.4: </b>
+ * If the <code>input</code> property is not specified and the Controller
+ * is configured to interpret the property as a forward, return the
+ * forward named "input" (if it exists) in this action mapping.</p>
*
* @return The input forward for this action mapping.
+ * @see ControllerConfig#getInputForward()
* @since Struts 1.1
*/
public ActionForward getInputForward() {