> From: David Momper [mailto:[EMAIL PROTECTED] > Subject: getRealPath() returning temp space path > > However, this is returning the directory: > "apache-tomcat-6.0.16/temp/#-Application/files" where # > is a number 0-9. > I thought it was supposed to return the path > "apache-tomcat-6.0.16/webapps/Application/files"
It's not actually guaranteed to return anything; this is another shining example of why you should *never* use getRealPath() in a J2EE environment. Tomcat provides a work area for webapps to use via the context attribute javax.servlet.context.tempdir; see the servlet spec and Tomcat configuration guide for details. Alternatively, you could provide the desired location via an environment variable, system property, or JNDI value. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]