thanks Randall. =)

i'm actually using the File.separatorChar in specifying the path.

i was just concern on the path for the filename that will be supplied
to the File class, because it must include the "..\webapps\myapp" in order
to locate the file. i was assuming that i can just automatically specify
the
filename directly on the File class by placing my file together with my
servlets. like this

     File ofile = new File ("myfile");

instead i have to do it this way inorder to locate it properly

   File ofile = new File
(".."+File.separatorChar+"webapps"+File.separatorChar+

 "myapp"+File.separatorChar+"WEB-INF"+File.separatorChar+
                                  "classes"+File.separatorChar+"myFile");

by somebody has told me that i can use the ServletContext getRealPath()
func.
 i will try it.

thanks

___________________________________________________________________________
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