V
Victoria
Dear all,
I use Tomcat to display a jsp page.
In this jsp page, I call a java program.
In this java program, I write the following code :
File f_keyword = new File ( "cat1.txt" );
In jsp page, exception occur : java.io.FileNotFoundException: cat1.txt
The system cannot find "cat1.txt" file.
However, I 've put cat1.txt and java program in the WEB-INF\classes directory.
I try to put "cat1.txt" in the jsp page directory, but the system still cannot find.
I try to use full path and the system can find "cat1.txt" file.
But can I use short path ? If yes, where should I put the "cat1.txt" file?
Thanks for answering my question.
Victoria
I use Tomcat to display a jsp page.
In this jsp page, I call a java program.
In this java program, I write the following code :
File f_keyword = new File ( "cat1.txt" );
In jsp page, exception occur : java.io.FileNotFoundException: cat1.txt
The system cannot find "cat1.txt" file.
However, I 've put cat1.txt and java program in the WEB-INF\classes directory.
I try to put "cat1.txt" in the jsp page directory, but the system still cannot find.
I try to use full path and the system can find "cat1.txt" file.
But can I use short path ? If yes, where should I put the "cat1.txt" file?
Thanks for answering my question.
Victoria