title: How can i access a HashMap with JSTL-EL in a jsp?
body: <p>Hi all
  I have a problem with accessing an HashMap into my jsl using EL and JSTL
  my hashmap is like so in the servlet:</p>
  
  <pre><code>HashMap indexes=new HashMap();
  </code></pre>
  
  <p>then lets suppose i add somthing like:</p>
  
  <pre><code>indexes.put(1,"Erik")
  </code></pre>
  
  <p>then i add it to the session:<code>session.setAttribute("indexes",indexes)</code></p>
  
  <p>from the jsp if i access the hashmap like this</p>
  
  <pre><code>${sessionScope.indexes}
  </code></pre>
  
  <p>it shows all key-value pair in the map, but like this for example:</p>
  
  <pre><code>${sessionScope.indexes[1]} or ${sessionScope.indexes['1']}
  </code></pre>
  
  <p>it wont work</p>
  
  <p>as far as i can see this is the ethod used in many tutorials i dont know where i'm failing
  any suggestion?</p>