On Tue, 20 Mar 2001, Jason Novotny wrote:

> 
>     Hi Jim,
> 
> 
>     I've had my fair share of fun trying to use getResourceBundle to load a
> properties file and made basically the same discoveries you have. The
> properties file say bar.properties gets loaded as
> ResourceBundle.getBundle("org.foo.bar") and must be in
> WEB-INF/classes/org/foo/bar.properties. This is so Tomcat can find the
> properties file in the web applications classpath- otherwise it doesn't know
> where it is-
> 

It is also standard behavior of Java with respect to class paths, and is
not specific to Tomcat.  Resource bundles have to follow the same
directory structure rules as a class named org.foo.bar would.

>     Jason
> 

Craig McClanahan

Reply via email to