I have a hashmap in an action class. I am trying to check if a key is not present to display a particular text on screen. However, it is not working. below is the code:
<s:elseif test="%{#map[getCurrentYear()]==null && #map.key.equalsIgnoreCase(cdKey)}">
<h4>
2
<s:text name="properties.msg.header" />
<s:property value="currentYear" />
</h4>
</s:elseif>
I am not able to get what is wrong with the code.