Vijendra, Jan, thanks.
My apologies for not describing my problem more clearly. Both properties are in one .properties file.
The exact implementation that I'd like to achieve is the following:
I have one property file ApplicationResources.properties, containing two keys:
columnname = Last Name
columnname.error = The field '{ some reference to columnname }' is mandatory.
In the form, I add a new ActionError("columnname.error") to the ActionErrors object. At runtime, when not filling in the Last Name, it would be nice if it would say onscreen:
The field 'Last Name' is mandatory.
instead of:
The field '{ some reference to columnname }' is mandatory.
The property is not referred to from a
jsp file directly, so I am unable to embed param elements in a bean:message element or so, using an implementation like {1}, right?
Jan, I agree such an implementation will make the file less maintainable, nevertheless I prefer consistence in this case, assuming columnname will change a couple of times during
test stage.