Title: Message
It will automatically use a property file named ActionName.properties in the same package as your Action... if it doesn't find the key there, it will search the similarly eponomously named properties files for the parent class, and so on, until it gets to java.lang.Object. If it doesn't find the key there, it will search any property resource bundles registered with the LocalizedTextUtil as default resource bundles.
 
There's an entry in the WebWork2 FAQ about registering a default resource bundle:
 
-----Original Message-----
From: Ray Henry [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 4:35 PM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] setting Messages for an Action

I want the Action to refer to text using a key. I have a properties file that maps the key to the message.

 

Where in xwork.xml do I tell the Action which file to use for messages?  

Reply via email to