Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 6743 invoked from network); 11 Sep 2006 13:34:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Sep 2006 13:34:20 -0000 Received: (qmail 92313 invoked by uid 500); 11 Sep 2006 13:34:15 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 92268 invoked by uid 500); 11 Sep 2006 13:34:15 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 92257 invoked by uid 99); 11 Sep 2006 13:34:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Sep 2006 06:34:14 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.223.198.27] (HELO maillnx-us112.fmr.com) (192.223.198.27) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Sep 2006 06:34:14 -0700 Received: from MSGMMKSM01WIN.DMN1.FMR.COM (MSGMMKSM01WIN.dmn1.fmr.com [10.33.139.32]) by maillnx-us112.fmr.com (Switch-3.1.8/Switch-3.1.7) with SMTP id k8BDTUn8005159 for ; Mon, 11 Sep 2006 09:29:30 -0400 Received: from MSGMMKIV02WIN.DMN1.FMR.COM (10.33.148.31) by MSGMMKSM01WIN.DMN1.FMR.COM (Sigaba Gateway v4.0) with ESMTP id 97322935; Mon, 11 Sep 2006 09:33:52 -0400 Received: from MSGMMKIM01WIN.DMN1.FMR.COM ([172.25.108.46]) by MSGMMKIV02WIN.DMN1.FMR.COM with SMTP_server; Mon, 11 Sep 2006 09:33:52 -0400 Received: from msgmrocln2win.DMN1.FMR.COM ([10.37.181.14]) by MSGMMKIM01WIN.DMN1.FMR.COM with Microsoft SMTPSVC(5.0.2195.6713); Mon, 11 Sep 2006 09:33:51 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: [commons-validator] msg tag and validwhen validator Date: Mon, 11 Sep 2006 09:33:51 -0400 Message-ID: <7DEC0455383D5044B9499068E379F36A029AB25C@MSGMROCLN2WIN.DMN1.FMR.COM> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [commons-validator] msg tag and validwhen validator Thread-Index: AcbVpusSBkkWGV9ySxaYgEdL9VP4/g== From: "O'Shea, Sean" To: X-OriginalArrivalTime: 11 Sep 2006 13:33:51.0845 (UTC) FILETIME=[EB783950:01C6D5A6] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi all, I have a situation where I need to get the run-time value of a field and display it should a validation error occur. Taking the validwhen example from the struts sample application: test (*this* > min) I need to be able to display something like "The max field cannot be less than 12". In order to do this I guess I need my validWhenForm.error.numeric resource entry to look something like this: The {0} field cannot be less than {1} What I'm stuck at though is how to get the run-time minimum value into an argument. I tried this =20 test (*this* > min) min min =20 But all I get displayed is "The Maximum field cannot be less than null" Any ideas on this would be greatly appreciated Thanks Sean O Shea --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org