I couldn't locate in java.io where you can obtain information such as directory structure for a folder.
Where can I find this? Thanks, Paul -----Original Message----- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Galbreath, Mark Sent: Thursday, March 07, 2002 10:51 AM To: [EMAIL PROTECTED] Subject: Re: Read files from a directory "strange" to TOMCAT Sure! A servlet is just another Java class - use the Java.io.* package. Mark -----Original Message----- From: Jo�o Robertson Kramer Santana [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 12:02 PM To: [EMAIL PROTECTED] Subject: Read files from a directory "strange" to TOMCAT Is it possible for a servlet to list and read a directory content outside its context. For example, I want my servlet to check a directory content every 5 minutes. It should list the files, open then , read its contents and do something. Is it possible to do it with a directory outside TOMCAT's scope (I mean, that is not listed in the server.xml file) ? I guess I cant use the getContext() method, because the directory is "strange" to TOMCAT. Any help would be appreciated .... bye jk ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
