title: How to access java map object in JSP
body: <p>I have following loop in my jsp page:</p>
  
  <pre><code>    &lt;c:forEach var="i" begin="1" end="${ toLvvt }" step="1"&gt;
        &lt;c:set var="mapKey"&gt;${to.id}-${record.rId}-${record.opjakso}&lt;/c:set&gt;
          &lt;c:if test="${MyMap[mapKey].v1s eq true}"&gt;
             ...do something...
          &lt;/c:if&gt;&gt;
  </code></pre>
  
  <p>problem here is that I want to use <code>var i</code> fetching map object value (above <code>v1s</code>) like this: <code>v${i}s</code> but this is wrong.</p>
  
  <p>I have map <code>Map&lt;string, Object&gt;</code>. Object has boolean properties v1s, v1k, v2s, v2k...</p>