tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Saurabh Shukla)
Subject RE: Virtual Hosts and Properties files..
Date Tue, 21 Nov 2000 17:25:44 GMT

if I am getting you correctly, in your web.xml invoke a servlet at startup
and depending upon
the parameters you can pick up the path from there.  U might have to hard
code something in web.xml.

-----Original Message-----
From: Scott Hamilton, +61-2-9942 9693 []
Sent: Wednesday, November 22, 2000 8:44 AM
Subject: Virtual Hosts and Properties files..


   I'm not sure exactly if this is the right forum, but here goes...
   I have JSP page using a Bean (ofcourse) this is defined in a
   virtual host (for Development, Test and Production for each
   DNS domain hosted) I'd like to read a file
   (using Properties, FileInputStream and File classes)  that
   resides in the /dev/app1/web-inf/classes/ directory for that
   particular host that has a number of environment (dev,test,prod)
   properties for that bean....

   So my question (atlast), is there a property I can get to pass
   to the constructor for File to pickup the right file path of
   where the classes really is executing from????
   FWIW when I do a file.getCanonicalPath() it returns the directory
   I installed tomcat into (eg: C:\jakarta-tomcat\

   Many thanx in advance for any info
      Scott, Esq.

View raw message