Re: checking if there is a file that exists //ServletContext.getRealPath() method.???

2001-11-16 Thread [EMAIL PROTECTED]
Hello Hassan! :-) DH> try DH> { DH> File imageFile = new File("./personnel/mfleshman.jpg"); DH> if(imageFile.exists() ){ %> DH> Above code never finds the file. Well, you could do File imageFile = new File( pageContext.getServletContext().

Re: checking if there is a file that exists //ServletContext.getRealPath() method.???

2001-11-16 Thread Dasti, Hassan
Hi Richard, I tried to use the java.io.File.exists() method, but doing the following. try { File imageFile = new File("./personnel/mfleshman.jpg"); if(imageFile.exists() ){ %> file exists.