tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan <>
Subject can I get a directory listing in tomcat
Date Thu, 06 Jun 2002 21:17:23 GMT
I'm trying to get a directory listing as in the
example below, but an exception is thrown saying the
tomcat user does not have access to the /tmp
directory. Is the tomcat itself not allowing access to
the servers directory structure (i.e. the permissions
on /tmp are completely open i.e. 777)?? I'm using
tomcat 4 with jdk 1.4.0

String dir = "/tmp/";
File fDir=new File(dir); // the directory
//tomcat cannot get past this line in the code.
String[] fileList=fDir.list(); // fetch the list

Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message