struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <>
Subject [validation] Help with 'contains' validation
Date Tue, 01 Mar 2005 15:36:49 GMT
(No luck on commons-user; trying again here.)

I'm trying to validate a password such that it cannot contain the userId.
Is this something I can do in validation.xml?

I'm currently using a mask in validation.xml:
 <field property="password" depends="required,mask">
            <arg0 key="label.password"/>

(And I'm not very good at regular expressions, so if there's a better way to
say "letter, digit, or any of these special characters, I would appreciate a

Can it be done with validwhen?  How do I say "does not _contain_ userId"?
I'd like it to be case insensitive, but could live without that if it's

Wendy Smoak

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message