From: Anthony E. <me...@an...> - 2001-11-20 19:28:30
|
> >> > >> Before you go and code up a solution, can we see a snippet of XML of > >> what the config will look like in this case so we can comment? Just a > >> request. > > > > <element name="x"> > > <validator type="group"> > > <validator type="class" > > classname="org.formproc.example.UsernameValidator"/> > > <validator type="expression"> > > > <pattern>\w{1,}</pattern> > > </validator> > > </validator> > > </element> > > Since your XML there doesn't have more than one rule inside the "group" > validator, I can only infer that FormProc will support more than one rule. > Is this true? I think the nesting may be unclear. The "group" type is a validator which holds other validators. Look again at how the validators are setup. The group validator holds two other validators, a class validator and an expression validator. -Anthony |