Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Configurable Errors

James Dekker

2007-01-16

Replies:

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@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.