title: How to get the value in an EnumMap using a key in EL expression?
body: <p>I have a EnumMap:</p>
  
  <pre><code>EnumMap&lt;Gender, Integer&gt; genderMap = new EnumMap(Gender.class);
  </code></pre>
  
  <p>where Gender is  <code>public enum Gender {Male, Female};</code></p>
  
  <p>And I have <code>req.setAttribute("genderMap", genderMap);</code></p>
  
  <p>Now I want to get the value from <code>genderMap</code> by a key in JSP file:</p>
  
  <pre><code>${genderMap['Male']}
  </code></pre>
  
  <p>but this doesn't get the value in <code>genderMap</code>. Why?</p>