The Struts has built-in e-mail validation, which can be found in the commons-validator.jar.
--- Bart Busschots <[EMAIL PROTECTED]> wrote: > Hi, > > Your regular expression on the mask would seem to be > problem. I presume > you want it to match words that contain no = rather > than what you have > at the moment which forces ALL letters to be = which > I'm sure doesn't work. > > The RE you need is: > > ^[^=]+$ > > HTH, Bart. > > marisol wrote: > > Can anybody help me with this? THANKS! > > Marisol. > > > > > > With Struts Validator Framework, the following > mail is valid [EMAIL PROTECTED] > > > > I tried with the following but it doesn't work. > > > > <field property="email" depends="required, mask, > email"> > > <msg name="mask" > key="userRegistration.mailMask" /> > > <arg0 key="userRegistration.email" /> > > <var> > > <var-name>mask</var-name> > > <var-value>^[=]*$</var-value> > > </var> > > </field> > > > > Anyone knows if there's a bug place or it's me > doing something wrong??? > > > > THANKS! > > Marisol. > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]