commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <>
Subject Re: [validator] bundle attribute of <arg> tag
Date Wed, 11 May 2005 22:21:47 GMT
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


----- Original Message ----- 
From: "Simon Pettibone" <>
Sent: Wednesday, May 11, 2005 8:35 PM

> I'm using commons-validator 1.1.4 (with Struts 1.2.4).  In my
> 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:
For additional commands, e-mail:

View raw message