Hi, I have some DynaActionForms wth some validations defined in the struts-config.xml. My system is in English and French. The validations used to work whether I was in french or english but all of a sudden they validate only in the english language. I was just wondering where was the best place to look. Thanks.
Joined: Aug 02, 2006
Well, I did a bit of debugging stepping thru Struts code and i've noticed that at startup the forms are set in in a form set within the ValidatorResources Object. Two lists are created, one for en_CA and one for fr instead of fr_CA? Possibly a problem. When I look at the lists the en_CA which is my default local it has all of my forms but the fr only has one. Does anybody have any idea why the validator plugin only puts the forms in the english en_CA list? [ March 14, 2007: Message edited by: Angelo Bonaparte ]
I've never used the Struts Validation Framework in a multi-language environment, but as I read the Struts Validator Guide I get the impression that you have to create a separate formSet for each locale in your validation.xml file. Try creating two formSets like this: