For accessing dynamic value from hash map you can use brace notation [].
${someMap[dynamicKey]}
For example, consider @Som's answer map
Map countryMap = new HashMap();
countryMap.put("United States", "Washington DC");
countryMap.put("India", "Delhi");
countryMap.put("Germany", "Berlin");
countryMap.put("France", "Paris");
countryMap.put("Italy", "Rome");
request.setAttribute("countryMap", countryMap);
JSP
Set key
pass the dynamic key
${countryMap[keyName]}
Or directly
${countryMap['United States']}
See also