You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chuck Carson <Ch...@syrrx.com> on 2002/09/04 23:44:10 UTC

Relative Servlet Path

 
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 ROOT/WEB-INF/classes/db ?
 
Sorry if this is newbie, I have only been using tomcat for 2 weeks.
 
Thanks,
Chuck
 
Chuck Carson     
Sr. Systems Administrator
Syrrx, Inc.
10410 Science Center Drive
San Diego, CA 92121
E: ccarson@syrrx.com <ma...@syrrx.com> 
W: 858.731.3540
M: 858.442.0827


----------
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version.