This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hi all, I have a problem with this method. I am running my servlet in install-dir/webpages/WEB-INF/servlets/ and have servlets.properties in install-dir/webpages/WEB-INF/ but my Servlet doesn't read initialization values. I dont' know why. I thought I set up all the CLASSPATH and PATH right.. Can you think of anything? Thanks
You need to find out what directory is the actual working directory for your servlet. It's not always obvious. Put a debug printout in your servlet to tell you this info. You obtain it using System.getProperty("user.dir"). Then ensure your property file is place in the directory it shows. Hope this helps