You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by st...@apache.org on 2002/07/08 10:08:08 UTC

cvs commit: xml-cocoon2/src/scratchpad/src/org/apache/cocoon/acting AbstractMethodAction.java

stephan     2002/07/08 01:08:08

  Modified:    src/scratchpad/src/org/apache/cocoon/acting
                        AbstractMethodAction.java
  Log:
  The action shouldn't throw an exception if the attribute
  'method' not available.
  
  Revision  Changes    Path
  1.3       +4 -3      xml-cocoon2/src/scratchpad/src/org/apache/cocoon/acting/AbstractMethodAction.java
  
  Index: AbstractMethodAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/acting/AbstractMethodAction.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractMethodAction.java	22 Feb 2002 06:58:02 -0000	1.2
  +++ AbstractMethodAction.java	8 Jul 2002 08:08:07 -0000	1.3
  @@ -113,8 +113,9 @@
           throw new Exception("action has no method \"" + actionMethod + "\"");
         }
       }
  -    else {
  -      throw new Exception("you need to specify the method with parameter \"" + ACTION_METHOD_PARAMETER + "\"");
  -    }
  +
  +    if (getLogger().isDebugEnabled()) 
  +        getLogger().debug("you need to specify the method with parameter \"" + ACTION_METHOD_PARAMETER + "\"");
  +    return null;
     }
   }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org