1. java.util.properties and JSP coderanch.comHere's the scoop: Apache / Tomcat config. I'm trying a simple test to prevent from hard coding my database connection info into my classes. I jave a JSP that initializes the class: ... props p = new props(); //show a little help message System.out.println("success"); ... Soooo... I have prop.properties file that contains the variables I wanted to set(see following snippet). The ... |
2. Java.util.Properties Not Found During loading in Servlet/JSP Erro coderanch.comBased on the most common errors when reading data files from servlets, I would bet that the problem is trying to read a file without specifying a complete path and file name. Any code that depends on the "current" directory will fail in a servlet because the servlet container has its own idea of what the current directory is. Bill |
3. confusion: javax.naming.InitialContext vs java.util.Properties coderanch.com |