How I can get map on JSP page age and show the key and value in two columns of a table
<p>I have generated a map on my controller.</p>

<pre><code>  Map&lt;String, String&gt; currentbatchitems = new HashMap&lt;String, String&gt;();

    for (int i = 0; i &lt; currentbatchitem.size(); i++) {
        currentbatchitems.put(currentbatchitem.get(i).getEmpCode(), currentbatchitem.get(i).getEmpName().toString());

    }
    data.put("currentbatchitems", currentbatchitems);
</code></pre>

<p>How can I show the the key and value in separate column on my JSP. Such as,<a href="http://i.stack.imgur.com/jI7Md.png" rel="nofollow">This the table.The key of the map is employee code and value is employee name.How could I add the row on this table by getting the value from this map?</a></p>