[opencms-dev] ResourceBundle and OpenCMS
Trevor Lee
Trevor.Lee at 4Loop.com.au
Tue Oct 21 07:29:00 CEST 2003
Hi
I have a file "mine.properties" which is a simple key=value file. The
intention is to use this file to load values into a jsp page based on locale
using the ResourceBundle().
I was wondering where i should put this property file within opencms. The
jsp page i have that calls the ResourceBundle.getBundle() exists in the
project directory (myProj) along with the mine.properties file.
The jsp has the following line:
ResourceBundle registryBundle = ResourceBundle.getBundle("myProj.mine");
I get the error message:
javax.servlet.ServletException: Resource loader error in file
'/myProj/mine.jsp'
Root cause:
org.apache.jasper.JasperException: Can't find bundle for base name
myProj.mine, locale en_US
I have also tried placing it in the classes directory of my module.
any help in the above would be most appreciated.
Thank you
Cheers
Trevor
More information about the opencms-dev
mailing list