Well, if you are talking about context.getRealPath(/), that points to the
root of your webapp. If you were to append your db/file.dat to that, you
would be looking for it in:
MyContext/
db/file.dat
WEB-INF/web.xml
I assume you want your db file hidden from
for the db
directory?
Thanks,
CC
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 11:40 PM
To: Tomcat Users List
Subject: Re: Relative Servlet Path
Well, if you are talking about context.getRealPath(/), that points to
the
root of your
If I have a servlet, say ROOT/WEB-INF/classes/MyServlet, what would be
the relative path for this servlet. ie: If I have a variable as such:
String myconfig = db/file.dat;
What is this path relatvie to, would it be the same directory as the
servlet, thus I would create