Accessing error messages defined in package.properties from MyAction.validate method
Fletcher Munson
Ranch Hand
Joined: May 16, 2007
Posts: 31
posted
0
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?