I have problem with file accessing in other computer in jsp.
The follow code
File folder=new File("Z:"+File.separator+"sharefolder");//Z is a net
share driver
File[] files=folder.listFiles();
System.out.println("test");
System.out.println("length="+files.length);
will throw exception at the second print.
but it works well in main funtion.
Is anybody know what is the problem.
JSP works on windows2003 server,tomcat 5.0.28 JDK1.4 net share folder
on windows2000 server
Oliver Wong - 05 Jun 2006 16:45 GMT
>I have problem with file accessing in other computer in jsp.
> The follow code
[quoted text clipped - 8 lines]
> JSP works on windows2003 server,tomcat 5.0.28 JDK1.4 net share folder
> on windows2000 server
What's the exception? See
http://riters.com/JINX/index.cgi/Suggestions_20for_20Asking_20Questions_20on_20N
ewsgroups#RepeatErrorsExactly
- Oliver