Support for the "bundle" attribute in the validation configuration file (for both <msg> and <arg> elements) has only just been added to Struts 1.2.7
http://struts.apache.org/userGuide/release-notes.html http://svn.apache.org/dist/struts/v1.2.7/ Niall ----- Original Message ----- From: "Simon Pettibone" <[EMAIL PROTECTED]> Sent: Wednesday, May 11, 2005 8:35 PM > I'm using commons-validator 1.1.4 (with Struts 1.2.4). In my validation.xml > file, I have a test form defined as follows: > > <form name="TestForm"> > <field property="color" depends="required"> > <msg key="errors.required" name="required" bundle="${bundle}"/> > <arg key="test.color" name="required" bundle="${bundle}" > position="0" /> > </field> > </form> > > When the required validation fails, it pulls the error message correctly > from the bundle that I've specified in the global constant "bundle." > However, it looks for the argument in the default resource bundle, instead > of the one that I've specified. Is this a bug or is anyone aware of this? > Is there a work-around? I want the argument to be pulled from the same > bundle that the message is in. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
