Accessing error messages defined in package.properties from MyAction.validate method
Joined: May 16, 2007
How do pull messages from the package.properties file for my actions? I'm running some user entered data against my DB, and need to display an error message if the validation fails. I would like to just define the message in the package.properties file with the rest of the ones I've defined for the xml validation, but I don't understand how to access them in the validate method in my action. I thought it would be something like addActionError("myMessage");, but this only displays myMessage on the GUI. Can someone give me a hint?