title: How to get Map value given a key in a JSP?
body: <p>I have a Struts 2 application using the JSTL/Struts2/DisplayTag tag libraries in my JSP.  Is there a way to access the value of a Map in a JSP given the key?</p>
  
  <pre><code>// Action code
  Map&lt;String,String&gt; map = new HashMap&lt;String,String&gt;();
  
  mapOnValueStack = map;
  
  //add key/value pairs
  
  fieldKeyOnValueStack = "1";//sets key
  </code></pre>
  
  <p>....</p>
  
  <pre><code>&lt;%-- JSP code --%&gt;
  
  &lt;s:property value="%{mapOnValueStack.get(fieldKeyOnValueStack)}" /&gt;
  </code></pre>
  
  <p>Essentially I want to do map access within the JSP.  <strong>Is this possible?</strong></p>
  
  <p>Thanks!</p>