L
laredotornado
Hi,
I'm using the below code to get properties from a Properties file ...
java.util.Properties props = new java.util.Properties();
ClassLoader cl = this.getClass().getClassLoader();
InputStream input = cl.getResourceAsStream( "mine.properties" );
if (input == null) {
out.println("can't find properties.");
} else {
props.load(input);
out.println(props);
} // if
My question is, is it possible to find out the path of
"mine.properties" if it is located? I'm using Java 1.5 on Weblogic
9.2.2.
Thanks, - Dave
I'm using the below code to get properties from a Properties file ...
java.util.Properties props = new java.util.Properties();
ClassLoader cl = this.getClass().getClassLoader();
InputStream input = cl.getResourceAsStream( "mine.properties" );
if (input == null) {
out.println("can't find properties.");
} else {
props.load(input);
out.println(props);
} // if
My question is, is it possible to find out the path of
"mine.properties" if it is located? I'm using Java 1.5 on Weblogic
9.2.2.
Thanks, - Dave