Hi Ranchers! I've got a question about message resources...
I would like to be able to access my message resources in a regular class, I mean, not a
servlet (action) class. Is there any way to do this?
In my project, I have to send a mail when a certain action class is accessed. It's off course not a problem to access the message resources there. The actual sending of the mail and the assembling of the mail are done in seperate classes (no servlets). It's in the assembling class that I need to access the message resources.
What I could do is fetch some messages in the action class and pass them on with parameters in a method of the assembling class. But you onderstand that there would be a lot of parameters, which is not nice. Maybe passing a single hastable with all the required messages in it, is an option, but I don't like it... :-)
Is there any other way to access my message resources in the assembling class?
Thx for your help! (Would a piece of code help you guys? ;-))