----- Original Message -----
From: Christian Haul <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 5:40 PM
Subject: Re: Help with form validation
> On 17.Sep.2001 -- 03:47 PM, beje wrote:
> > Hi,
> > I have n dinamicaly generated (and identical) forms to fill-in;
> > on submition I'd like to validate them by using just a descriptor file
> > whitch contains just 1 form (since all are the same).
> >
> > Is there a way to achieve that ?
>
> Sure, just have the same parameter names. You might even want to set
> your descriptor as default descriptor.
>
> Chris.
Unfortunately, the fields are numbered like this:
<input name="country1" .../>
<input name="city1" .../>
<input name="street1" .../>
........
<input name="country2" .../>
<input name="city2" .../>
<input name="street2" .../>
........
to
<input name="countryN" .../>
<input name="cityN" .../>
<input name="streetN" .../>
And one more thing:
I want to have in the sitemap a general entry for all validation actions,
somehting like:
<map:match pattern="validate-*">
<!-- first validate whether submitted values are ok -->
<map:act type="form-validator">
<map:parameter name="descriptor"
value="context://mysite/mydescriptors/{1}.xml"/>
<map:parameter name="validate" value=" ???? "/>
<map:redirect-to uri="process-{1}.xsp"/>
</map:act>
</map:match>
Is there a wildcard for the validate parameter values ?
---------------------------------------------------------------------
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]>