File Can Not be Found



I have this source code here where it cant find the file:
Staging_PasswordAdministration.properties.
No clue why it gives me this error because the file is named correctly
and is in the same working directory as the jsp file.

Basically all i want to do is load a properties file that i have.
Wondering if java.io.FileInputStream is even the right function to do
this.

let me know


Properties prop = System.getProperties();
osname = prop.getProperty("os.name");
if (osname.equals("Windows XP"))
{
test = ("same words");

prop.load(new
java.io.FileInputStream"Staging_PasswordAdministration.properties"));


}

.



Relevant Pages

  • Re: Multisampling, Supersampling source code for dummies?
    ... > Cant believe 5 + billion people in the planet dont have a clue ... > to any source code :-( ...
    (comp.graphics.algorithms)
  • Properties File
    ... When i run my source code it loads the properties file correctly but it ... cant find the path of the log file. ...
    (comp.lang.java.programmer)
  • Re: Extracting a String value with ANT
    ... removing the information from source code to a ... properties file. ... But from a support standpoint I moved that info ... to a Java class. ...
    (comp.lang.java.programmer)
  • Re: Properties File
    ... When i run my source code it loads the properties file correctly but it ... cant find the path of the log file. ...
    (comp.lang.java.programmer)
  • Re: Extracting a String value with ANT
    ... use it in ANT? ... removing the information from source code to a ... properties file. ... Java can deal with properties ...
    (comp.lang.java.programmer)