RE: Loading properties file for an external class

2002-11-20 Thread Cox, Charlie
' 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

Re: Loading properties file for an external class

2002-11-20 Thread David Wall
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

Re: Loading properties file for an external class

2002-11-19 Thread Paul Campbell
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

RE: Loading properties file for an external class

2002-11-19 Thread Klein, Scott @ TW
: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

RE: Loading properties file for an external class

2002-11-19 Thread Justin Ruthenbeck
) { } 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

Re: Loading properties file for an external class

2002-11-19 Thread David Wall
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

RE: Loading properties file for an external class

2002-11-19 Thread Klein, Scott @ TW
( 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

Re: Loading properties file for an external class

2002-11-19 Thread David Wall
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

RE: Loading properties file for an external class

2002-11-19 Thread Klein, Scott @ TW
-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