May not be the answer you want but,
but how about 3 different named properties files
and using resource bundle to load the right one dependent on the host http 
header ( will return dev.site.com, or www.site.com) ,
just to be really awkward you could use a 4th properties file which is used 
to load in the respective site domains?

as for collecting http headers, in particular the host one check the snoop 
servlet provided with tomcat in the examples section.

Hope it helps

Chris

At 22:14 21/11/2000 -0500, you wrote:
>Greetings!
>
>    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 thisbean.properties 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\mybean.properties)
>
>
>    Many thanx in advance for any info
>       Scott, Esq.

-------------------------------------------
Chris Edwards
e. [EMAIL PROTECTED]
m. 0772 0266858
-------------------------------------------

Reply via email to