Re: Relative Servlet Path

2002-09-05 Thread Jacob Kjome
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

RE: Relative Servlet Path

2002-09-05 Thread Chuck Carson
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

Relative Servlet Path

2002-09-04 Thread Chuck Carson
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