title: How to put Java Map into Optgroup Options Using Spring MVC?
body: <p>I am using Spring MVC.</p>
  
  <p>I currently have a Map being passed from Java to my page in a variable called "userLocales" via request.setAttribute('userLocales', bluh bluh bluh)</p>
  
  <p>I need to somehow get the strings in that variable to build a list of option elements in an optgroup select element. My initial thought would be to somehow turn this Map into a Javascript object somehow, and then add the strings to newly created option elements to be placed in the optgroup element.</p>
  
  <p>The optgroup element is static and already created. I just need the options with the string in them.</p>