You can put the properties file in any folder, by keeping one thing in mind that the 
folder should be in classpath of your application.

Now reading those properties file has no relation with the class packages. You can 
read the file from any class of any package.

-----Original Message-----
From: Adrian Janssen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 12:28 PM
To: [EMAIL PROTECTED]
Subject: Re: properties file


my 2c:

I always put the properties file in the same directory as the class file
that will read it and this has always worked for me.

If you need to read it off disk from two different classes in different
packages, then I dont know as I don't ever do this.

Cheers

> -----Original Message-----
> From: Bhushan_Bhangale [SMTP:[EMAIL PROTECTED]]
> Sent: 15 May 2002 06:31
> To:   [EMAIL PROTECTED]
> Subject:      Re: properties file
>
> Yaa it picks from both man otherwise what is the classes directory doing
> there in WEB-INF folder.
>
> Read class-loader-howto.html file from the tomcat docs to know about the
> Class loader of tomcat.
>
> -----Original Message-----
> From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 9:55 AM
> To: [EMAIL PROTECTED]
> Subject: Re: properties file
>
>
> tomcat picks the files which are in lib directory by setting TOMCAT_HOME.
> i
> dont think it picks the ones in classes folder.
>
> Regards,
> Vikramjit Singh,
> Systems Engineer,
> GTL Ltd.
> Ph. 7612929-1031
>
>
> -----Original Message-----
> From: Bhushan_Bhangale [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 9:16 PM
> To: [EMAIL PROTECTED]
> Subject: Re: properties file
>
>
> No it works fine. There is no need to set classpath explicitly as what
> ever
> class and properties files are there in the WEB-INF/classes gets picked
> when
> the tomcat starts.
>
> -----Original Message-----
> From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 9:18 AM
> To: [EMAIL PROTECTED]
> Subject: Re: properties file
>
>
> if you do that also, still it does not get the properties file, atleast
> not
> in my case, in which i had made an i18n demo. but yeah after setting the
> classpath it did solve my problem.
>
> Regards,
> Vikramjit Singh,
> Systems Engineer,
> GTL Ltd.
> Ph. 7612929-1031
>
>
> -----Original Message-----
> From: Bhushan_Bhangale [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 14, 2002 8:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: properties file
>
>
> You should put all the properties file in the WEB-INF/classes directory if
> you are reading the property files using ResourceBundle or ClassLoader.
>
> -----Original Message-----
> From: Michael Nicholson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 15, 2002 1:34 AM
> To: [EMAIL PROTECTED]
> Subject: properties file
>
>
> I can't seem to put the properties file in the right place.  I've finally
> managed to get Tomcat to run and even run jsp's, but it won't run mine
> because it can't find the properties file (which is all over the place).
> Is
> there somewhere I set an appropriate classpath type variable or something
> like that that I'm missing?  Help!
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
> ==========================================================================
> To
> unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
> ==========================================================================
> To
> unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
> ==========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

--
**********************************************************************
The Truworths e-mail facility may not be used for the distribution of
chain letters or offensive email.  Truworths hereby distances itself
from and accepts no liability for the unauthorised use of its e-mail
facility or the sending of e-mail communications for other than
strictly business purposes.  Truworths furthermore disclaims liability
for any unauthorised instruction for which permission was not granted.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==========================================================================To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to