It *could* work but was hoping for something better.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 2:23 PM
To: JRun-Talk
Subject: RE: Declaring properties for web applications?
Hey Phillip. Would init parameters work? You can set them on a
per-application basis, and reference them via
ServletContext.getInitParameter().
HTH,
Patrick Quinn
Macromedia Consulting
[EMAIL PROTECTED]
-----Original Message-----
From: Rhodes, Phillip C. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 2:11 PM
To: JRun-Talk
Subject: Declaring properties for web applications?
I have two web applications in the same container instance. Thus, I have 2
web.xml files.
What is the best way to define a property that is different between the two
different web applications?
For example, say I have a property called "greeting" and for web app 1, I
want this property to be "Hello App 1 User". Going along with this analogy,
say in my web app 2, I want this property value to be "Hello App 2 User"
I can not store this of type env-entry in the web.xml file, that would cause
JNDI name collisions. What's the best way to do this?
The following does not work (JNDI name collisions), but it illustrates what
I want to do.
In app 2 web.xml
<env-entry>
<env-entry-name>greeting</env-entry-name>
<env-entry-value>Hello App 1 User</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
In app's 2 web.xml
<env-entry>
<env-entry-name>greeting</env-entry-name>
<env-entry-value>Hello App 2 User</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists