'
Subject: RE: Loading properties file for an external class
Well, I have no idea why - but I switched to using a
ResourceBundle and it
worked.
It doesn't seem like it should matter - except for how a
bundle obtains its
class loader.
If anyone has some insight into _why_ this fixed
Where do I need to drop it?
webapps/yourappname/WEB-INF/classes if it's a standalone file -- remember
that's the base, so if the properties file is considered to be in a package,
it has to be a subdirectory of this base location.
webapps/yourappname/WEB-INF/lib/yourjar.jar -- if you've put it
I put it in the classes directory.
eg.
webapps/YourContext/WEB-INF/classes/some.properties
At 02:56 PM 11/19/02, you wrote:
I have a JSP which uses an external class (via an import) and it is looking
for a property file that it loads using the system ClassLoader.
I have dropped the properties
:44 PM
To: Tomcat Users List
Subject: Re: Loading properties file for an external class
I put it in the classes directory.
eg.
webapps/YourContext/WEB-INF/classes/some.properties
At 02:56 PM 11/19/02, you wrote:
I have a JSP which uses an external class (via an import) and it is looking
) {
}
nothin'.
???
-Original Message-
From: Paul Campbell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 3:44 PM
To: Tomcat Users List
Subject: Re: Loading properties file for an external class
I put it in the classes directory.
eg.
webapps/YourContext/WEB-INF/classes
Where do I need to drop it?
webapps/yourappname/WEB-INF/classes if it's a standalone file -- remember
that's the base, so if the properties file is considered to be in a package,
it has to be a subdirectory of this base location.
webapps/yourappname/WEB-INF/lib/yourjar.jar -- if you've put it
( Throwable t ) {
}
nothin'.
???
-Original Message-
From: Paul Campbell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 3:44 PM
To: Tomcat Users List
Subject: Re: Loading properties file for an external class
I put it in the classes directory.
eg.
webapps
JSP page:
%@ page import=my.pkg.Class %
Class source:
try {
InputStream is =
this.getClass().getResourceAsStream(File.separatorChar +
Prop.properties);
this.props.load(is);
} catch( Throwable t ) {
}
Not sure about this method since we
-Original Message-
From: David Wall [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 4:26 PM
To: Tomcat Users List
Subject: Re: Loading properties file for an external class
JSP page:
%@ page import=my.pkg.Class %
Class source:
try {
InputStream