You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lakshmi Anantharaman <La...@camsystems.com> on 2001/10/05 21:19:35 UTC

Form Validation

 Can someone explain this to me in laymans terms ?  

 <map:match pattern="formvalidation/test">
     <map:act type="form-validator">
          	<map:parameter name="descriptor"
value="context:///docs/samples/formvalidation/descriptor.xml"/>
       	 <map:parameter name="validate-set" value="car-reservation"/>
   	 <map:redirect-to resource="dynamic-page"
target="docs/samples/formvalidation/OK"/>
     </map:act>
      <map:redirect-to resource="dynamic-page"
target="docs/samples/formvalidation/ERROR"/>
   </map:match>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Form Validation

Posted by Gregory Steuck <gr...@buildpoint.com>.
 <map:match pattern="formvalidation/test">

If your request is for formvalidation/test url, continue inside match
element.

     <map:act type="form-validator">
       	<map:parameter name="descriptor" value="context:///docs/samples/formvalidation/descriptor.xml"/>
        <map:parameter name="validate-set" value="car-reservation"/>

Execute form-validator action with 2 parameters above.

   	 <map:redirect-to resource="dynamic-page" target="docs/samples/formvalidation/OK"/>

If form-validator action succeeded, execute dynamic-page pipeline with
docs/samples/formvalidation/OK target.

     </map:act>
      <map:redirect-to resource="dynamic-page" target="docs/samples/formvalidation/ERROR"/>

If form-validator failed, execute dynamic-page pipeline with
docs/samples/formvalidation/ERROR target.

   </map:match>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>