You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Paul Goepfert <pa...@gmail.com> on 2005/06/08 08:03:09 UTC
Question about property files
Just a quick question, I have written a message resource foor part of
my application. I have added the message-resource to my struts
configuration. However when I run my web app the properties file is not
loaded. I know its the location. Here is my question, where in the
web app directory structure do I place the propperties file? I am
asking on this list because it iis an entry in the struuts-config file.
-Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Question about property files
Posted by Rutger Heijmerikx <ru...@gmail.com>.
It also works as follows;
I have an entry within the struts config file that looks like;
<message-resources parameter="com.mycompany.resources.ApplicationResources" />
And within the package "com.mycompany.resources" i have the resource files;
ApplicationResources.properties
ApplicationResources_nl.properties
This works for me but i know that the application's classpath should
be used like McDonnell said. But i can't recall if they automatically
are loaded and how the entry should be in the struts config file if
that location is used.
On 6/8/05, Paul Goepfert <pa...@gmail.com> wrote:
> Just a quick question, I have written a message resource foor part of
> my application. I have added the message-resource to my struts
> configuration. However when I run my web app the properties file is not
> loaded. I know its the location. Here is my question, where in the
> web app directory structure do I place the propperties file? I am
> asking on this list because it iis an entry in the struuts-config file.
>
> -Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
JL [JavaLists dot com]
The mailing list resource for Java developers
http://www.javalists.com/
rutger@javalists.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org