As far as i understand, what you are saying is that in your
JSP, the name of your Map is testMap and you are setting it with the name map in the request scope. Now if you want to confirm that whether you have to use ${testMap} or ${map}, then try to write ${testMap.id} and ${map.id} in your JSP somewhere and see if it works. The EL looks into different scopes for attributes that you name. It will not look at any declarations of objects in your scriptlets. See this
So in your case, ${testMap} would not point to any object but ${map} will...