Hello,
So I'm writing a few library classes that I hope I'll be able to use
over and over again. Because goodness knows, someone needs to invent the
wheel again. ;)
Anyways.. I want my classes to use properties files for configuration,
and what I really want is something like:
1. Place the
Howdy,
I'm expecting that when I go to load the properties, it will look in
WEB-INF/classes *first*, from this snip from the CLASSLOADER doc
Therefore, from the perspective of a web application, class or resource
loading looks
Hello All:
I have a handful of classes, some static, that contain commonly used
functionality
that my web applications are using. Now, I am adding in a new static method
which
will require the Class to load a properties file within the Static
Initializer.
My problem is that the class cannot
From: [EMAIL PROTECTED]
Subject: Loading Properties Files
My problem is that the class cannot location my properties file. I am
unable to
use other suggested methods that I have noticed on this list since those
problems
involved Properties File within Servlets.
After some testing, I
]
Subject: Loading Properties Files
My problem is that the class cannot location my properties file. I am
unable to
use other suggested methods that I have noticed on this list since those
problems
involved Properties File within Servlets.
After some testing, I determined for some
And if you have a .war file? Then where would you put your properties
files?
-Original Message-
From: Roberto Bouza [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 04, 2002 2:49 PM
To: Tomcat Users List
Subject: Re: Loading Properties Files
Thats right.
If you
, December 04, 2002 2:49 PM
To: Tomcat Users List
Subject: Re: Loading Properties Files
Thats right.
If you don't have a .war file, you can use the classes dir
inside your WEB-INF
dir, and create a new directory like conf, the put inside
all the properties
files. In that way the ClassLoader
If I understand you correctly, the properties file CANNOT be in the war
file, it needs to be external. Right.
-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 04, 2002 3:25 PM
To: Tomcat Users List
Subject: RE: Loading Properties Files
to you properties files.
Will
- Original Message -
From: Jay Wright [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, December 04, 2002 3:37 PM
Subject: RE: Loading Properties Files
If I understand you correctly, the properties file CANNOT be in the war
file
. Right.
-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 04, 2002 3:25 PM
To: Tomcat Users List
Subject: RE: Loading Properties Files
Depends upon what you want to do with the properties files
and how you
access them. Some ways of accessing them
:25 PM
To: Tomcat Users List
Subject: RE: Loading Properties Files
Depends upon what you want to do with the properties files
and how you
access them. Some ways of accessing them require that the
name to access
be relative to the classpath, others don't. You are better
off to learn
about
On Wed, 4 Dec 2002, micael wrote:
Date: Wed, 04 Dec 2002 17:13:16 -0800
From: micael [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Loading Properties Files
A .war file is just a wrapper for a web application. I think
Hi,
Could u tell me what is not correct with that :
Before we had that ( the properties files were in WEB-INF/classes ) and that works :
package com.a2a.util ;
public interface A2aConstantes
{
public static final String SCHEMA =
java.util.ResourceBundle.getBundle(db).getString(schema);
}
Message -
From: Laurent Michenaud [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 27, 2002 4:40 AM
Subject: Loading properties files
Hi,
Could u tell me what is not correct with that :
Before we had that ( the properties files were in WEB-INF/classes ) and
that works :
package
Message -
From: Laurent Michenaud [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 27, 2002 4:40 AM
Subject: Loading properties files
Hi,
Could u tell me what is not correct with that :
Before we had that ( the properties files were in WEB-INF/classes ) and
that works
I can't find the documentation u speak about.
Could u give me the url ?
-Message d'origine-
De : Alan Tingley - Iperia [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 27 août 2002 12:15
À : Tomcat Users List
Objet : Re: Loading properties files
Your properties file must
try http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
Al
- Original Message -
From: Laurent Michenaud [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, August 27, 2002 7:09 AM
Subject: RE: Loading properties files
I
the class loaders in Tomcat.
Alan Tingley
- Original Message -
From: Laurent Michenaud [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 27, 2002 4:40 AM
Subject: Loading properties files
Hi,
Could u tell me what is not correct with that :
Before we had
So, how can i modify my interface so that it reads
the file properties db in WEB-INF/config ?
-Message d'origine-
De : Glenn Nielsen [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 27 août 2002 15:32
À : Tomcat Users List
Objet : Re: Loading properties files
- Original Message -
From: randie ursal [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, August 27, 2002 7:05 AM
Subject: Re: Loading properties files
why is it tomcat could not locate the property file if i place it on the
package directory structure of my servlets
On Tue, 27 Aug 2002, Laurent Michenaud wrote:
Date: Tue, 27 Aug 2002 15:43:29 +0200
From: Laurent Michenaud [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Loading properties files
So, how can i
properties db in WEB-INF/config ?
-Message d'origine-
De : Glenn Nielsen [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 27 août 2002 15:32
À : Tomcat Users List
Objet : Re: Loading properties files
java.util.ResourceBundle.getBundle() uses the current
ClassLoader to load
your resource bundle
22 matches
Mail list logo