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 with
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 code
<bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
If the first one is triggered it works ok displaying the default message. But if the second one is triggered it fails with
I cant understand what Im doing wrong.
Error 500: No message found under code 'validation.2' for locale 'en_GB'.
(The Application is running as an EAR on Websphere 6)