lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/acting HTMLFormSaveAction.java
Date Mon, 11 Aug 2003 16:03:42 GMT
michi       2003/08/11 09:03:42

  Modified:    src/java/org/apache/lenya/cms/cocoon/acting
                        HTMLFormSaveAction.java
  Log:
  insert and delete started
  
  Revision  Changes    Path
  1.3       +11 -4     cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/acting/HTMLFormSaveAction.java
  
  Index: HTMLFormSaveAction.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/cocoon/acting/HTMLFormSaveAction.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HTMLFormSaveAction.java	8 Aug 2003 15:37:36 -0000	1.2
  +++ HTMLFormSaveAction.java	11 Aug 2003 16:03:42 -0000	1.3
  @@ -104,9 +104,7 @@
   
           Request request = ObjectModelHelper.getRequest(objectModel);
   
  -        if(request.getParameter("cancel") != null) {
  -            getLogger().error(".act(): Cancel editing");
  -        } else {
  +        if(request.getParameter("save") != null) {
               if(file.isFile()) {
                   getLogger().error(".act(): Save modifications to " + file.getAbsolutePath());
   
  @@ -134,6 +132,15 @@
                   getLogger().error(".act(): No such file: " + file.getAbsolutePath());
                   return new HashMap();
               }
  +        } else if(request.getParameter("insert") != null) {
  +            getLogger().error(".act(): Insert");
  +            Enumeration params = request.getParameterNames();
  +            while (params.hasMoreElements()) {
  +                String name = (String) params.nextElement();
  +                getLogger().error(".act(): Parameter: " + name + " (" + request.getParameter(name)
 + ")");
  +            }
  +        } else { // cancel
  +            getLogger().error(".act(): Cancel editing");
           }
   
           return null;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message