Where to put ResourceBundle files so my webapp can find them?

Luigi Viggiano

You can put them with your classes, I'm doing so and I'm having no problems.
For example, let's say I have a property resource bunde called messages.properties, i put it with my classes in src/it/myapp I can get it using

ResourceBundle res = ResourceBundle.getBundle("it.myapp.messages");
when making the web archive, you can have the messages.properties in WEB-INF/classes/it/myapp/messages.properties or in a jar contained in WEB-INF/lib directory of the web archive, respecting the package 'it.myapp'.