struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Mefford <>
Subject Re: Localized -validation.xml
Date Wed, 12 Jan 2011 15:56:55 GMT

Thank you.  I have read over that but I am interested in Localizing
the rules actually changing whether a field is required or not
depending on the country.  For example I may have a County field for
my address which is required for the US but in Hong Kong they don't
require County.  I was hoping that my setting the context locale I
would be able to get a different -validation.xml definition file.


On Tue, Jan 11, 2011 at 3:14 PM, Maurizio Cucchiara
<> wrote:
> I strongly recommend you read the following link [1], in particoular the
> section that talks about "Localizing and Parameterizing Messages"
> [1]
> Maurizio Cucchiara
> On Jan 11, 2011 7:27 PM, "Paul Mefford" <> wrote:
> Does anyone know of the best way to have different validation rules
> for different locales in the validation.xml.
> I created what I feel is a hack by using wildcard in the alias:
>       <action name="start*" class="com.MyClass" method="input">
> Then I call startUS so my validation.xml file is named
> MyClass-startUS-validation.xml
> Is this the best or recommended way to do this? I thought there may be
> some -validation_en_US.xml or something but testing this doesn't work.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message