cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ive...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/samples/xmlform UsageFeedbackAction.java
Date Mon, 29 Jul 2002 03:07:08 GMT
ivelin      2002/07/28 20:07:08

  Modified:    src/java/org/apache/cocoon/samples/xmlform
                        UsageFeedbackAction.java
  Log:
  clean up
  
  Revision  Changes    Path
  1.2       +9 -24     xml-cocoon2/src/java/org/apache/cocoon/samples/xmlform/UsageFeedbackAction.java
  
  Index: UsageFeedbackAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/samples/xmlform/UsageFeedbackAction.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- UsageFeedbackAction.java	28 Jul 2002 14:03:52 -0000	1.1
  +++ UsageFeedbackAction.java	29 Jul 2002 03:07:08 -0000	1.2
  @@ -62,23 +62,11 @@
    */
   package org.apache.cocoon.samples.xmlform;
   
  -
  -// Java classes
   import java.util.Map;
  -
  -// Framework classes
  -import org.apache.excalibur.source.Source;
  -import org.apache.avalon.framework.parameters.ParameterException;
  -
  -
  -// Cocoon Form
   import org.apache.cocoon.acting.AbstractXMLFormAction;
  -import org.apache.cocoon.components.xmlform.Form;
  -
   
   /**
  - * This action demonstrates
  - * a relatively complex form handling scenario.
  + * This action implements a REST web service
    *
    * @author Ivelin Ivanov <ivelin@apache.org>
    */
  @@ -93,18 +81,15 @@
     final String SERVICE_RESPONSE_ERROR = "error";
   
   
  -  /**
  -   * Invoked after form population
  -   *
  -   * Semanticly similar to Struts Action.perform()
  -   *
  -   * Take appropriate action based on the command
  -   *
  -   */
     public Map perform ()
     {
   
  +    // When form-view is not provided,
  +    // only data format validation is performed during population
  +    // but not consequetive data content validation (i.e. no Schematron validation)
  +    // Therefore, we will validate "manually"
       getForm().validate();
  +    
       if ( getForm().getViolations () != null )
       {
         return page( SERVICE_RESPONSE_ERROR );
  
  
  

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