Re: Configurable Errors

2007-01-16 Thread James Dekker
Chris! You hit the nail on the head! Removing the .properties extension made it work! Thank you so much! You rock! -James On Jan 16, 2007, at 3:25 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, James Dekker wrote: m_resource = ResourceBundle.g

RE: Configurable Errors

2007-01-16 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: Configurable Errors > > ResourceBundle.getResource("errors") will get errors.properties > language and country is self-explanatory.. > > variant is either > WIN for Windows, MAC for Macintosh, and

Re: Configurable Errors

2007-01-16 Thread Martin Gainty
ments 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: &

Re: Configurable Errors

2007-01-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, James Dekker wrote: > m_resource = ResourceBundle.getBundle("error.properties"); When you use ResourceBundle.getBundle, you don't put the ".properties" extension on the file. You need to change this line of code to this: m_resource =

RE: Configurable Errors

2007-01-16 Thread Robert Harper
he event that such a virus or defect exists. -Original Message- From: James Dekker [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 16, 2007 3:53 PM To: Tomcat Users List Subject: Re: Configurable Errors Dear Mr. Harper, Thank you for the response! I set the path inside the ActionError co

Re: Configurable Errors

2007-01-16 Thread James Dekker
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 er

RE: Configurable Errors

2007-01-16 Thread Robert Harper
g received or opened is virus free. No responsibility is accepted by IAT for any loss or damage in the event that such a virus or defect exists. -Original Message- From: James Dekker [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 16, 2007 3:33 PM To: Tomcat Users List Subject: Configura

Configurable Errors

2007-01-16 Thread James Dekker
Hello there, I am creating a configurable errors file which gets loaded as a properties file from an init servlet: import java.io.IOException; import java.util.Properties; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; public class ErrorInitServlet extends