hi!
you can access them (in case you have permission to read the directory on
the server) but because you can't access it via ServletContext those files
do not belong to your webapplication. you need to use the classes from the
java.io package.

-mw

At 14:01 07.03.2002 -0300, you wrote:
>         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

Reply via email to