Thanks Greg
I assume by default on submit , the evaluvation is carried as per ERROR.xsp
, and this is why it is not part of <map:act> tags
<map:redirect-to resource="dynamic-page"
target="docs/samples/formvalidation/ERROR"/>
This is the standard way I suppose !?!
Lakshmi
-----Original Message-----
From: Gregory Steuck [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 2:28 PM
To: [EMAIL PROTECTED]
Subject: Form Validation
<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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>