title: how to get values in jsp using jstl from hashmap without iteration?
body: <p>i am a newbie i have a hash map declared as</p>
  
  <pre><code> HashMap map = new HashMap();
  
      map.put("code", code);
      map.put("url", evaluationTSRCode);
  </code></pre>
  
  <p>and iam passing this map in my modelandview contoller like this</p>
  
  <pre><code>return new ModelAndView("purchaseProduct","map","map"); 
  </code></pre>
  
  <p>how to access the values code,evaluationTSRCode in jsp using jstl without using iteration
  i tries like this but i could not get the values.</p>
  
  <pre><code>&lt;c:choose&gt;
  &lt;c:when test="(${map.code} != null &amp;&amp; ${map.code}=!"" )" &gt;
  &lt;td&gt;You can purchase&lt;a href='&lt;c:url value="${map.url}"/&gt;'&gt;Directly&lt;/a&gt;&lt;/td&gt;
  &lt;/c:when&gt;
  &lt;c:otherwise&gt;
  td&gt;You can purchase Directly&lt;/td&gt;
  &lt;/c:otherwise&gt;
  &lt;/c:choose&gt;
  </code></pre>
  
  <p>please help me in solving this issue</p>
  
  <p>Thanks in advance</p>