I am getting below error in my Controller class when trying to get message from resource file, but i am able to get the same message in jsp file
my properties file is messages.properties and not messages_en_US.properties , this might be issue, but i want to make it work using messages.properties because i cannot change the file name to messages_en_US as it might broke my other part of web application
this is my set up,
in servlet-contxt.xml file
in my controller this is what i do use AutoWired to load the bean
org.springframework.context.NoSuchMessageException: No message found under code 'label.firstname' for locale 'null'.
Joined: Aug 15, 2002
I got it working by changing servlet-contxt.xml file