Thankx a lot!!! It worked best regds, AMOL YADWADKAR | Software Engineer | M P H A S I S Architecting Value| IT SERVICES 2nd Floor, The Leela Business Park, Andheri Kurla Road, Andheri(E), Mumbai 400059| Tel: 91 22 56777777 Extn 5356 | Fax: 91 22 56777700| Cell : 9819011934 | www.mphasis.com
Information transmitted by this e-mail is proprietary to MphasiS and/ or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at [EMAIL PROTECTED] and delete this mail from your records. -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Friday, September 16, 2005 4:37 AM To: user@struts.apache.org Subject: Re: Validation Issue Amol Yadwadkar wrote: > Hi List, > > I am using Validation Framework. > > <field > property="clientTaxId" > depends="required,mask" > > <arg0 key="loanAppForm.clientTaxId"/> > <arg1 name="mask" key="prompt.taxid" /> > <var> > <var-name>mask</var-name> > <var-value>${taxid}</var-value> > </var> > </field> > > In the above when mask rule fails it picks up the message against the > errors.invalid key in the properties file rather than the specified > key as "prompt.taxid" in validation.xml > > Can anyone pls suggest me my mistake ? The arg* attributes are for passing in values for placeholders in the default error messages. If you want to specify a different error message, you want the 'msg' attribute instead: <msg name="mask" key="prompt.taxid"/> L. --------------------------------------------------------------------- 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]