Re: File Can Not be Found



RigasMinho <minho.cho@xxxxxxxxx> wrote:
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.

Use ServletContext.getResourceAsStream. FileInputStream looks for files
relative to the current working directory, *not* the directory
containing the JSP. The current working directory is undefined in a web
application environment.

--
Chris Smith
.