hi, there,
how to use a relative path in a servlet? ie. a file exists in
/home/admin/file.txt, and on webserver, its virtual directory is
127.0.0.1/apps, in 127.0.0.1/appsclass/app.class, I want to get this file
through relative path   ../apps/file.txt.
File file=new File("../apps/file.txt");

thanks a lot.

sincerely
sun

___________________________________________________________________________
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