Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 34533 invoked from network); 7 Aug 2007 21:26:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Aug 2007 21:26:30 -0000 Received: (qmail 63426 invoked by uid 500); 7 Aug 2007 21:26:19 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 63385 invoked by uid 500); 7 Aug 2007 21:26:19 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 63371 invoked by uid 99); 7 Aug 2007 21:26:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 14:26:18 -0700 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2007 21:26:13 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IIWYq-0007Fy-I2 for user@struts.apache.org; Tue, 07 Aug 2007 14:25:52 -0700 Message-ID: <12042474.post@talk.nabble.com> Date: Tue, 7 Aug 2007 14:25:52 -0700 (PDT) From: orshoe To: user@struts.apache.org Subject: Struts 2 Validation multiple validators on same field MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: orshoe@yahoo.com X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I am trying to enforce a "requiredstring" on a text field and also make sure it follows certain constraints. I am using the following in the -validation.xml: --------------------------------------------------------------------------------------------------------------------------- 6 10 Account Number cannot be less than ${min} or greater than ${max}. Its currently ${accountNumber} You must enter Account Number --------------------------------------------------------------------------------------------------------------------------- The problem is, I am getting both the messages displayed (also the "You must enter Account Number") even when there is a value (say, 5) entered in the field. Is there any way to get only the appropriate message displayed based on the input. note: Please ignore the extra spaces in the param tags, I had intentionally added the space to make sure the message preview'd properly. -- View this message in context: http://www.nabble.com/Struts-2-Validation-multiple-validators-on-same-field-tf4232748.html#a12042474 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org