title: No message found under code 'login.userName' for locale 'en_GB' error in spring MVC
body: <p>In my spring-servlet.xml I have </p>
  
  <pre><code>&lt;bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"&gt;
      &lt;property name="basename" value="/WEB-INF/messages" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>My messages.properties file is inside my WEB-INF/classes and its named as messages_EN.properties which contains like </p>
  
  <pre><code>login.userName=Username.
  login.password=pssword.
  </code></pre>
  
  <p>My jsp file has </p>
  
  <pre><code> &lt;%@taglib uri="http://www.springframework.org/tags" prefix="spring"%&gt;
   &lt;%@taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%&gt;
  
   &lt;html&gt; 
  &lt;head&gt; 
   &lt;title&gt; Login &lt;/title&gt;
   &lt;/head&gt; 
   &lt;body&gt;
   &lt;form:form method="post" action="home.htm"&gt;
    &lt;label&gt; &lt;spring:message code="login.userName"/&gt;&lt;/label&gt;
   &lt;/form:form&gt;
   &lt;/body&gt;
   &lt;/html&gt;
  </code></pre>
  
  <p>when I run this I am getting the below error message </p>
  
  <pre><code>  No message found under code 'login.userName' for locale 'en_GB'.
  </code></pre>
  
  <p>If anyone can help me where I am wrong. Also if I need to change to some other language then what I need to do?</p>