RE: How to read files on a network drive from a JSP

2005-10-14 Thread Longson, Robert
Subject: How to read files on a network drive from a JSP > Hi, > > I have to list the files on a particular folder on a network drive. My > code is: > > File f = new File("host_ip_address\\folder1\\folder2"); > File files[] = f.listFiles(); > System.ou

Re: How to read files on a network drive from a JSP

2005-10-14 Thread Victor Star
Hi Dheeraj, - Create a new local user, call it "TOMCAT" for example. - Set some password for it - Run your tomcat service under this user's credentials - create the local user with exactly same name and password on the other machine you're trying to access - make sure that local user has permissi

How to read files on a network drive from a JSP

2005-10-14 Thread Soti, Dheeraj
> Hi, > > I have to list the files on a particular folder on a network drive. My > code is: > > File f = new File("host_ip_address\\folder1\\folder2"); > File files[] = f.listFiles(); > System.out.println("===>>>Files are: " + files); > > The same code works from a standlone java pr