title: Named Parameters rather than positional for Spring MessageSource.getMessage()
body: <p>we are using Spring MessageSource to build error messages in our app. </p>
  
  <p>We populate our error messages like this</p>
  
  <pre><code>dobInvalid = The DOB supplied {0} is invalid
  </code></pre>
  
  <p>We want to use named parameters so we can do</p>
  
  <pre><code>dobInvalid = The DOB supplied {dob} is invalid
  </code></pre>
  
  <p>Looking in the Api docs for getMessage it appears to suggest you can do this 
  <a href="http://static.springsource.org/spring/docs/1.2.x/api/org/springframework/context/MessageSource.html" rel="noreferrer">http://static.springsource.org/spring/docs/1.2.x/api/org/springframework/context/MessageSource.html</a></p>
  
  <blockquote>
    <p>args - Array of arguments that will be filled in for params within the
    message (params look like "{0}", "{1,date}", "{2,time}" within a
    message), or null if none.</p>
  </blockquote>
  
  <p>Obviously we can write our own but was wondering if spring can do it and if anyone can provide an example or using named parameters rather positional parameters.</p>
  
  <p>Cheers
  Mark</p>