title: usage of nested expression(el) in jsp
body: <p>learning jsps. got doubt on nested expression. i create a list and map in servlet, add it to the request attributes and dispatch it to jsp. in the jsp i'm just trying to read the values.</p>
  
  <p>setting attributes in servlet:</p>
  
  <pre><code>    List&lt;String&gt; someList = new ArrayList&lt;String&gt;();
      someList.add("one");someList.add("two");someList.add("three");
      Map&lt;String,Integer&gt; m = new HashMap&lt;String,Integer&gt;();
      m.put("one", 1);
      m.put("two", 2);
      m.put("three", 3);
      req.setAttribute("someList",someList);
      req.setAttribute("hmap", m);
  </code></pre>
  
  <p>jsp code:</p>
  
  <pre><code>&lt;body&gt;
      &lt;br&gt; list : ${someList}
      &lt;br&gt;
      &lt;br&gt; map:${hmap}
      &lt;br /&gt;
      &lt;br&gt; using JSTL: ${hmap["${someList['0']}"]} is the value for key
      ${someList["0"]}
      &lt;br /&gt;
      &lt;br /&gt; USING hardocded ${hmap["one"]} is the value for key one
      &lt;br /&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>html output </p>
  
  <pre><code>list : [one, two, three] 
  
  map:{two=2, one=1, three=3} 
  
  using JSTL: is the value for key one 
  
  USING hardocded 1 is the value for key one 
  </code></pre>
  
  <p>why am i getting empty space using nested jstl: ${hmap["${someList['0']}"]}, is it the right way ?</p>