I have two files message.properties & message_en_GB.properties in my WEB_INF directory they both contain the following
My Spring config file is in the same dir and references the files withCode:validation.1=Please check the data you have entered is correct validation.2=This value cannot be left blank
In one of my validators I have the codeCode:<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> <property name="basename"><value>message</value></property> </bean>
andCode:errors.rejectValue("description","validation.2","Use Default");
If the first one is triggered it works ok displaying the default message. But if the second one is triggered it fails withCode:errors.rejectValue("description","validation.2");
I cant understand what Im doing wrong.Code:Error 500: No message found under code 'validation.2' for locale 'en_GB'.
(The Application is running as an EAR on Websphere 6)


Reply With Quote