cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From step...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/src/org/apache/cocoon/acting AbstractMethodAction.java
Date Tue, 09 Jul 2002 21:38:35 GMT
stephan     2002/07/09 14:38:35

  Modified:    src/scratchpad/src/org/apache/cocoon/acting
                        AbstractMethodAction.java
  Log:
  The action doesn't work is the method paramter is '' and not null.
  
  Revision  Changes    Path
  1.4       +1 -1      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractMethodAction.java	8 Jul 2002 08:08:07 -0000	1.3
  +++ AbstractMethodAction.java	9 Jul 2002 21:38:35 -0000	1.4
  @@ -104,7 +104,7 @@
   
     public Map act( Redirector redirector, SourceResolver resolver, Map objectModel, String
source, Parameters parameters) throws Exception {
       String actionMethod = parameters.getParameter(ACTION_METHOD_PARAMETER,null);
  -    if (actionMethod != null) {
  +    if ((actionMethod != null) && (actionMethod.length()>0)) {
         Method method = (Method) methodIndex.get(actionMethod);
         if (method != null) {
           return((Map) method.invoke(this, new Object[]{ redirector,resolver,objectModel,source,parameters
}));
  
  
  

----------------------------------------------------------------------
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


Mime
View raw message