Re: File Can Not be Found
- From: Chris Smith <cdsmith@xxxxxxx>
- Date: Thu, 31 Aug 2006 09:17:35 -0600
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
.
- References:
- File Can Not be Found
- From: RigasMinho
- File Can Not be Found
- Prev by Date: Re: (Off topic) Cyberwar question
- Next by Date: Re: Running java programs from class files
- Previous by thread: File Can Not be Found
- Next by thread: Re: (Off topic) Cyberwar question
- Index(es):