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
> 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
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: &
-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 =
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
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
It looks like it is looking for it in the root of either the machine or
CATALINA_HOME. Resolve the path correctly and you'll probably find your
problem. You didn't provide the path so the loader assumes the root.
Robert S. Harper
Senior Engineer
Information Access Technology, Inc.
1100 East 6600 S