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:37:10 UTC

svn commit: r180002 - /struts/core/trunk/src/share/org/apache/struts/action/ActionMapping.java

Author: hrabago
Date: Sat Jun  4 09:37:10 2005
New Revision: 180002

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

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

Modified: struts/core/trunk/src/share/org/apache/struts/action/ActionMapping.java
URL: http://svn.apache.org/viewcvs/struts/core/trunk/src/share/org/apache/struts/action/ActionMapping.java?rev=180002&r1=180001&r2=180002&view=diff
==============================================================================
--- struts/core/trunk/src/share/org/apache/struts/action/ActionMapping.java (original)
+++ struts/core/trunk/src/share/org/apache/struts/action/ActionMapping.java Sat Jun  4 09:37:10 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;
 
 
 /**
@@ -47,6 +49,13 @@
 
 public class ActionMapping extends ActionConfig {
 
+    
+    /**
+     * <p>Commons Logging instance.</p>
+     *
+     * @since Struts 1.2.8
+     */
+    private static Log log = LogFactory.getLog(ActionMapping.class);
 
 
     /**
@@ -65,6 +74,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