I have a file           D:\tomcat4.0/webapps/myroot/WEB-INF/files/myfile01.txt


A/   If I try to open file01.txt on the command line, it is ok.
D:\tomcat4.0/webapps/myroot/WEB-INF/classes>java  MyApp  files/myfile01.txt


B/  However, I have problem when running a servlet,
D:\tomcat4.0/webapps/myroot/WEB-INF/classes/MyServlet.class

http://myserver:8080/myroot/servlet/MyServlet

1/  I can list all  the files in     D:\tomcat4.0\webapps\myroot\WEB-INF\files

2/  I can not open this file;  I get error message to open
java.io.FileNotFoundException: /WEB-INF/files/file01.txt (The system
cannot find the path specified)

I try to open unsuccessful with
br = new BufferedReader(new FileReader("/WEB-INF/files/file01.txt "));
br = new BufferedReader(new FileReader("WEB-INF/files/file01.txt "));


Thanks,
CL

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to