Hi, You'll have to search for and parse the file yourself. Web applications are supposed to be self-contained, and being able to access things like the server's configuration would be a very big security risk. It's (almost always) bad design for an application to look for an do stuff from its own docBase, the server's appBase, etc.
Instead, you should be using URLs obtained via the ServletContext, e.g. ServletContext.getResource("/WEB-INF/myConfigFile.prop"). These will all reside under your webapp, not in some general server directory. Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Terje Hopsų [mailto:terje@;hopso.no] >Sent: Sunday, October 27, 2002 5:09 PM >To: [EMAIL PROTECTED] >Subject: Retrieving info from conf/server.xml > >Hi! > >I not to familiar using Tomcat and have a questing about getting info from >the conf/server.xml file. > >In the file I set up my application with a docBase. How can I access that >info from a jsp-program or a java-program in the server. Are there >functions for it or do I have to search the file myselft? > >- Terje
This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
-- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>