Say I'm in a
struts action:
to get the list of keys from ApplicationResources.properties, I do the following:
Now I understand that if I call messageResources.get(key) I will get back the requested property from ApplicationResources.properties.
Now suppose that a little later in the action I want to pass the messageResources object I just retrieved to a Manager/Logic class, so it can retrieve a key, but without making the Manager/Logic dependent on the Struts Framework.
Would I simply retrieve the value from the messageResources and pass it into the Manager/Logic method?
(this seems a little awkward since so many values are being passed this way)
Thank you,
- Andrew J. Leer