Hello,
Accessing the message resources is simple from a
JSP using the supplied tags, and accessing them is just as simple from an action class by calling getResources(). However, I need to access the message resources from a form class in one of my validation methods.
One of the ActionMessage constructors takes two parameters, a
string (key into the message resources for the error message), and an Object used to fill in the first parameter of the message {0}.
My problem is that the value I want to send in as the second parameter to the ActionMessage constructor is something that I want to read from the action messages.
So far, I have not found an easy way to access these resources other than setting up a resource bundle in the form, which I don't like. Is there a way to get to the MessageResources from a form class?
Thanks.