i have a map and i want to validate in struts 2 validation framework by using expression validation how can i access the elements of the map dynamically?
if Map myMap; how can i validate the map with dynamic key? if mymap has static key like "Salary", i could validate like
<field
name="myMap['Salary']">
<field-validator
type="regex">
<param
name="expression">[0-9]+[.][0-9]+</param>
<message>${getText("errors.validation.number")}</message>
</field-validator>
</field>
thanks,
Helen