Struts2 how to get value from HashMap stored in the request scope



Map<String,Boolean> dataMap =  new HashMap<String, Boolean>();

request.setAttribute("myDataMap",dataMap);


<s:property value="#request.myDataMap[#objectName.id]" />

Here myDataMap is stored in the request scope as an Attribute named "myDataMap"
from that map we are fetching the data based on the particular object ID.