You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hr...@apache.org on 2005/06/04 18:36:21 UTC

svn commit: r180001 - /struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionMapping.java

Author: hrabago
Date: Sat Jun  4 09:36:19 2005
New Revision: 180001

URL: http://svn.apache.org/viewcvs?rev=180001&view=rev
Log:
In findForward(), warn if the forward could not be found.

Modified:
    struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionMapping.java

Modified: struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionMapping.java
URL: http://svn.apache.org/viewcvs/struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionMapping.java?rev=180001&r1=180000&r2=180001&view=diff
==============================================================================
--- struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionMapping.java (original)
+++ struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/ActionMapping.java Sat Jun  4 09:36:19 2005
@@ -24,6 +24,8 @@
 
 import org.apache.struts.config.ActionConfig;
 import org.apache.struts.config.ForwardConfig;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 
 
 /**
@@ -48,6 +50,13 @@
 public class ActionMapping extends ActionConfig {
 
 
+    /**
+     * <p>Commons Logging instance.</p>
+     *
+     * @since Struts 1.2.8
+     */
+    private static Log log = LogFactory.getLog(ActionMapping.class);
+
 
     /**
      * <p>Find and return the <code>ForwardConfig</code> instance defining
@@ -63,6 +72,11 @@
         ForwardConfig config = findForwardConfig(name);
         if (config == null) {
             config = getModuleConfig().findForwardConfig(name);
+        }
+        if (config == null) {
+            if (log.isWarnEnabled()) {
+                log.warn("Unable to find '" + name + "' forward.");
+            }
         }
         return ((ActionForward) config);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org