> From: David Smith [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat / WAR File; Classpath not recognised for > properties file > > The only achilles heal [sic] here is the > ServletContext.getResource() method won't work > from a .war archive. The webapp has to be an > expanded folder.
Not according to the API doc: "This method allows the servlet container to make a resource available to servlets from any source. Resources can be located on a local or remote file system, in a database, or in a .war file." Note that you can also use ServletContext.getResourceAsStream() or Class.getResourceAsStream(), which are sometimes more convenient. - 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]