ResourceBundle.getResource("errors") will get errors.properties language and country is self-explanatory..
variant is either WIN for Windows, MAC for Macintosh, and POSIX for POSIX The order to locate the resources properties file on your classpath is .. a.. baseName + "_" + language1 + "_" + country1 + "_" + variant1 b.. baseName + "_" + language1 + "_" + country1 c.. baseName + "_" + language1 d.. baseName + "_" + language2 + "_" + country2 + "_" + variant2 e.. baseName + "_" + language2 + "_" + country2 f.. baseName + "_" + language2 g.. baseName (of course .properties is appended at end of the construct) Anyone else? M- --------------------------------------------------------------------------- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --------------------------------------------------------------------------- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. ----- Original Message ----- From: "James Dekker" <[EMAIL PROTECTED]> To: "Tomcat Users List" <users@tomcat.apache.org> Sent: Tuesday, January 16, 2007 5:53 PM Subject: Re: Configurable Errors > Dear Mr. Harper, > > Thank you for the response! > > I set the path inside the ActionError constructor as follows: > > public ActionError() { > m_resource = ResourceBundle.getBundle("/error.properties"); > } > > I thought the "/" meant the root directory inside > CATALINA_HOME/WEB-INF/classes/. > > Since, my error.properties file is going inside the > CATALINA_HOME/WEB-INF/classes/org/coffeebreak/wrapper/ directory via > my Ant build script, I rewrote the code inside the constructor as: > > public ActionError() { > // I removed the slash > m_resource = ResourceBundle.getBundle("error.properties"); > } > > And then it gave me that Missing exception... > > What am I possibly doing wrong? > > Sincerely, > > James Dekker > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >