title: Internationalization using Spring ResourceBundleMessageSource and FMT
body: <p>We are trying to implement internationalization using Spring ResourceBundleMessageSource and FMT. But when we use it in the JSP, pages are displaying value as <strong>???message.key???</strong>. Can you please help us in resolving this behavior? Really appreciate your answers. </p>
  
  <p>Below are the configuration: </p>
  
  <p>spring-servlet.xml entry </p>
  
  <pre><code>&lt;bean id="messageSource"   
  class="org.springframework.context.support.ResourceBundleMessageSource"&gt;
      &lt;property name="basename"&gt;
          &lt;value&gt;WEB-INF/messages/msgs&lt;/value&gt;            
      &lt;/property&gt; &lt;/bean&gt;
  
  &lt;bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor"&gt;
      &lt;property name="paramName"&gt;
          &lt;value&gt;locale&lt;/value&gt;
      &lt;/property&gt;  &lt;/bean&gt;
  
   &lt;bean id="localeResolver" class="org.springframework.web.servlet.i18n.SessionLocaleResolver"/&gt;
  
  
  &lt;bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"&gt;
      &lt;property name="interceptors"&gt;
          &lt;list&gt;             
              &lt;ref bean="localeChangeInterceptor" /&gt;                          
          &lt;/list&gt;
      &lt;/property&gt; 
  &lt;/bean&gt;
  </code></pre>
  
  <p>IN the JSP we have added the imported </p>
  
  <pre><code>&lt;%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %&gt;
  
  &lt;fmt:message key="message.key"/&gt;
  </code></pre>
  
  <p>Also in the war created we have the msgs.properties file under WEB-INF/messages folder.</p>
  
  <p>Really appreciate help in identifying the mistake we are making. Thank you. </p>