Alan Chandler <alan <at> chandlerfamily.org.uk> writes: > However, I have hit on a little problem. I want to create an appropriate > error message when the translation fails. This seems to work in the basis > that I pass a message-key which is looked up in a properties file (locale > based). > > I tried putting this key and local messages into my applications .properties > file but they were not found there. So where can I put my messages?
You may store the messages in files like YourValidator_en.properties in the same folder as YourValidator.java. Then load the messages using the ClassLoader.getResourceAsStream() method and the PropertyResourceBundle class in Java. -- Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
