Hi,

> What's the difference?

"resources.MessageResources" would look for the file named /WEB-INF/classes/resources/MessageResources.properties

"MessageResources" would look for the file named /WEB-INF/classes/MessageResources.properties

Is there maybe a configuration file to tell the loader which files and
classes to load? I am using eclipse.

The servlet spec stats that classes / resources are loaded from either the WEB-INF/classes or WEB-INF/lib directory.

And from memory, i think that MessageResources are loaded by the webapp class loader e.g.

something.getClass().getClassLoader().getResourceAsStream( "MessageResources.properties" );

because of this they need to be in one of the above directories

Gareth


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to