title: Spring MVC ResourceBundleMessageSource XML configuration
body: <p>I would like to mimic the Grails way of resolving i18n messages. </p>
  
  <p>In WEB-INF/i18n/ I have the following directories: </p>
  
  <p><strong>admin</strong>/messages_EN.properties</p>
  
  <p><strong>admin</strong>/messages_FR.properties </p>
  
  <p><strong>website</strong>/messages_EN.properties</p>
  
  <p><strong>website</strong>/messages_FR.properties</p>
  
  <p><em>please ignore the language endings ( EN and FR ) in this example</em></p>
  
  <p>in my xml configuration I currently have: </p>
  
  <pre><code>&lt;!-- Register the welcome.properties --&gt;
  &lt;bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"&gt;
    &lt;property name="defaultEncoding" value="utf-8" /&gt;
    &lt;property name="basename" value="/WEB-INF/i18n/" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>What I am looking for here, is a way to tell Spring to look for .properties files under i18n but without explicitly telling it what each subdirectory is. That is <strong>without</strong> a <strong>list</strong> of <strong>basenames</strong> that points to <em>/WEB-INF/i18n/admin/</em> and <em>/WEB-INF/i18n/website/</em></p>
  
  <p>I want the WEB-INF/i18n/ directory to be dynamic, and that bundles ( directories ) can be created without having to remodify the xml configuration file. </p>
  
  <p><strong>I am not trying to solve this particular example with admin and website sub directories</strong> </p>
  
  <p>Is this possible?</p>
  
  <p>Thanks!</p>