title: How to get session attribute with a dynamic key in EL?
body: <p>If I set session like this:</p>
  
  <pre><code>&lt;% 
  session.setAttribute("taintedAttribute", "what ever we want");
  %&gt;
  </code></pre>
  
  <p>normally we can get session variable like this in EL</p>
  
  <pre><code>${sessionScope.taintedAttribute }
  </code></pre>
  
  <p>But how about if I want to do like this</p>
  
  <pre><code>&lt;% 
  String name = "taintedAttribute";
  //session.setAttribute(name, "what ever we want");
  session.getAttribute(name);
  %&gt;
  </code></pre>
  
  <p>Then how can we call it in EL?</p>
  
  <p>Can EL get something like <code>${sessionScope.---dynamic name ---}</code>?</p>
  
  <p>If I do this:</p>
  
  <pre><code>&lt;c:set var="name" value="taintedAttribute" /&gt;
  &lt;c:out value="${sessionScope.[name]}"/&gt;
  </code></pre>
  
  <p>the name will be replaced by <code>taintedAttribute</code> as the same as this line</p>
  
  <pre><code>${sessionScope.taintedAttribute}
  </code></pre>
  
  <p>Is that possible? How can I do that?</p>