In the Servlet init() method you can call a method called getRealPath() This will return the name of the directory where your webapp is deployed. You may need to store this is a system property or a static classs for future use as it's only availalble on startup.
Donie -----Original Message----- From: Allan Bruce [mailto:[EMAIL PROTECTED] Sent: 22 January 2004 13:08 To: [EMAIL PROTECTED] Subject: default directory for files in tomcat I have an applet which requires a .ini file to be loaded up. This file is only found if I am in the directory containing it when I startup tomcat. Is there a default location for files, or is there a config for this? I tried placing them in a few places but none worked unless I started tomcat from within that directory. Thanks Allan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]