You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Carlos Ferreira <cf...@free.fr> on 2002/08/05 00:42:18 UTC

RE : RE: Location of application-specific properties files

Put your properties file in WEB-INF/classes and use

private static final String DEFAULT_FILENAME = "forum";
// leave the .properites out

or in WEB-INF/classes/com/mycompany/ and use
private static final String DEFAULT_FILENAME = "com.mycompany.forum";


good luck

carlos


-----Message d'origine-----
De : Vernon Wu [mailto:vernonw@gatewaytech.com]
Envoyé : dimanche 4 août 2002 19:39
À : Tomcat Users List
Objet : Re: RE: Location of application-specific properties files


Robert,

I only use property files for the presentation layer. And I place all
those files under WEB-INF/classes. It is working on
TC4.0.4, but not on the 4.1.7b from my test yesterday. Since the way you
access the files is different from mine, I can't
say much about it. What you miss, I guess you, is a small detail. I don't
know whether it will help if you read the i18n
section of the online tutorial again.


8/4/2002 2:24:52 PM, "Robert Baker" <ro...@charter.net> wrote:

>I had thought so as well, but it doesn't work anywhere under
>WEB-INF/classes.
>
>-----Original Message-----
>From: Vernon Wu [mailto:vernonw@gatewaytech.com]
>Sent: Sunday, August 04, 2002 12:37 PM
>To: Tomcat Users List
>Subject: Re: Location of application-specific properties files
>
>My impression is a set of property files shall be placed somewhere in the
>path of WEB-INF/classes.
>
>
>
>--
>To unsubscribe, e-mail:  
<ma...@jakarta.apache.org>
>For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Location of application-specific properties files

Posted by Robert Baker <ro...@charter.net>.
I tried those - neither worked.  I will try the i18n tutorial as metioned
previously to see if that bears fruit.

-----Original Message-----
From: Carlos Ferreira [mailto:cferreira@free.fr]
Sent: Sunday, August 04, 2002 6:42 PM
To: tomcat-user@jakarta.apache.org
Subject: RE : RE: Location of application-specific properties files



Put your properties file in WEB-INF/classes and use

private static final String DEFAULT_FILENAME = "forum";
// leave the .properites out

or in WEB-INF/classes/com/mycompany/ and use
private static final String DEFAULT_FILENAME = "com.mycompany.forum";



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>