From user-return-132400-apmail-struts-user-archive=struts.apache.org@struts.apache.org Tue Mar 01 15:37:50 2005 Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 99690 invoked from network); 1 Mar 2005 15:37:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Mar 2005 15:37:50 -0000 Received: (qmail 29934 invoked by uid 500); 1 Mar 2005 15:37:37 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 29720 invoked by uid 500); 1 Mar 2005 15:37:36 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 29706 invoked by uid 500); 1 Mar 2005 15:37:36 -0000 Received: (qmail 29702 invoked by uid 99); 1 Mar 2005 15:37:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from post5.inre.asu.edu (HELO post5.inre.asu.edu) (129.219.110.120) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 07:37:34 -0800 Received: from conversion.post5.inre.asu.edu by asu.edu (PMDF V6.1-1X6 #30769) id <0ICO00F01JDDN6@asu.edu> for struts-user@jakarta.apache.org; Tue, 01 Mar 2005 08:36:49 -0700 (MST) Received: from smtp.asu.edu (smtp.asu.edu [129.219.110.107]) by asu.edu (PMDF V6.1-1X6 #30769) with ESMTP id <0ICO00E47JDD7L@asu.edu> for struts-user@jakarta.apache.org; Tue, 01 Mar 2005 08:36:49 -0700 (MST) Received: from A2000018 (wsmoak.vpia.asu.edu [209.147.173.40]) by smtp.asu.edu (8.12.10/8.12.10/asu_smtp_relay,nullclient,tcp_wrapped) with SMTP id j21FanMC026053 for ; Tue, 01 Mar 2005 08:36:50 -0700 (MST) Date: Tue, 01 Mar 2005 08:36:49 -0700 From: Wendy Smoak Subject: [validation] Help with 'contains' validation To: struts-user@jakarta.apache.org Message-id: <007a01c51e74$7c80c2a0$28ad93d1@irm.local> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Mailer: Microsoft Outlook Express 6.00.2800.1437 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N (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: mask ^[0-9a-zA-Z!%*-_+=:,\./?]*$ (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 suggestion.) 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 easier. Thanks, Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org