This bug exist really and is documented: look in http://struts.apache.org/userGuide/dev_validator.html
<field property="lastName" depends="required,mask"> <msg name="mask" key="registrationForm.lastname.maskmsg"/> <arg0 key="registrationForm.lastname.displayname"/> <var> <var-name>mask</var-name> <var-value>^[a-zA-Z]*$</var-value> </var> </field> By default the arg0-arg3 elements will try to look up the key attribute in the message resources. If the resource attribute is set to false, it will pass in the value directly without retrieving the value from the message resources. Note that since Struts 1.1, you must explicitly define your message resource in any module that is going to use the Validator, due to a problem accessing the top-level resource. This only effects applications which are using modules. -----Mensagem original----- De: Duggirala, Satyavati [mailto:[EMAIL PROTECTED] Enviada em: Tuesday, 31 May 2005 8:20 PM Para: Struts Users Mailing List Assunto: RE: Using multiple resource bundles Yes, I am doing that and "bean:message " works fine. I am having problem only with arg element in validation.xml Is arg element supported in struts1.1 or do we have to use arg0,arg1.. -----Original Message----- From: Riyaz Mansoor [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 4:12 PM To: Struts Users Mailing List Subject: Re: Using multiple resource bundles seems fine. you should declare your message resource in struts-config with the name "mybundle" and it should contain the key "myField.displayname" r u doing that? Duggirala, Satyavati wrote: > I am working on a field whose value is an int in the range 0-9999 My > code looks in validation.xml looks like this- > > <form name="myForm"> > <field property="myField" depends="integer,intRange" page="1"> > <arg key="myField.displayname" bundle="mybundle" position="0" /> > <arg1 name="intRange" key="${var:min}" resource="false"/> > <arg2 name="intRange" key="${var:max}" resource="false"/> > <var><var-name>min</var-name><var-value>0</var-value></var> > <var><var-name>max</var-name><var-value>9999</var-value></var> > </field> > </form> --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]