title: How to get values of map based on key?
body: <p>I have a batch list object that contains batch numbers. Through <code>for</code> loop, I am sending the <strong>batchNumbers</strong> as a <code>key</code> for a map in my class. So, <code>key</code> contains batch number and <code>value</code> contains a list of jobs for that batchNumber.</p>
  
  <pre><code>List&lt;String&gt; batch = (List&lt;String&gt;) session.getAttribute("batchList");
  for(int i=0;i&lt;=batch.size()-1;i++) {
      jobMap.put(batch.get(i), ReportManager.getJobNumberForBatch(agent,batch.get(i)));
  }
  </code></pre>
  
  <p>Now in jsp page, I need to show map's values based on the key. If I give <code>${Map.values}</code> we will get a list of jobs irrespective of batch. But, as per my requirement, I need to get joblist based on selected batch. </p>
  
  <p>Could anyone help me with this</p>