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.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 = ResourceBundle.getBundle("error");
By the way, it looks like you are on your way towards building an
internationalized component to help manage error messages, probably
wrapped-up with a validation framework.
Unless it is very important to develop this component in-house,
might I
suggest looking at the jakarta commons validator package
(http://jakarta.apache.org/commons/validator/)?
I have never used commons-validator alone... I have always used it in
conjunction with Apache Struts, with which it is very well integrated.
Just a thought.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFrV7t9CaO5/Lv0PARAiHsAJ9wyTOqkQ7Zhj/vwOleb9NTWRk/zwCgpz49
BzEk86aDio/kxYmdxJgPlNE=
=t9KI
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]