Hi,

I use the regexp expression from C 2.0.3 form validator example and want to
validate 2 email fields :

in the descriptor :

 <parameter name="emailTo" nullable="no" type="string"
matches-regexp="^[\d\w][\d\w\-_\.]*@([\d\w\-_]+\.)\w\w\w?$"/>
(the same for emailCc)

and :

  <constraint-set name="default">
  <validate name="emailTo"/>
  <validate name="emailCc"/>
 </constraint-set>

However, when I enter "r" in "emailTo" and "e" in "emailCc" fields the form
gets validated ! Uh, any idea why ? Thanks,

Babs


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

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to