We are migrating our Struts 1.x application to Struts 2.1.6 and currently we are using Struts Validation framework where the parameterized error messages are picked up from resource bundle.
field.required=Field '{0}' is required. field.numeric=Field '{0}' must be a number.
Field 'First Name' is required. Field 'Last Name' is required. Field 'Age' must be a number. Field 'Cost' must be a number.
The parameter is not always an input value but a label or whatever is being passed. It is working fine in Struts 1.x using ActionMessage (new ActionMessage("field.required", "First Name")). Any help on how to achieve this in Struts 2 would be greatly appreciated.