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:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to