You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Howie <ca...@TooDarkPark.org> on 2001/08/22 17:15:26 UTC

location of ApplicationResources.properties...

where does ApplicationResources.properties have to be to get things to
Just Work(tm) ?  i've put it in
WEB-INF/classes/my/package/tree/ApplicationResources.properties,
WEB-INF/classes, WEB-INF, the app root, etc.  but struts ( bean:message )
still cant manage to find something thats in the .properties file.
interestingly, the struts example apps have no problems with grabbing info
from the .properties file.  they can even look at _my_ properties file,
but as soon as i try to use it in my app, no go.

---
Howie <ca...@toodarkpark.org>   URL: http://www.toodarkpark.org
     "This sort of thing has cropped up before and has always been
      due to human error." -- HAL




Re: location of ApplicationResources.properties...

Posted by Jonathan M Crater <jo...@fanniemae.com>.
are you passing your properties file to your action servlet in web.xml? for
example:

<servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>

        <init-param>
            <param-name>application</param-name>
            <param-value>fullyQualified.pathTo.propertiesFile</param-value>
        </init-param>

        <!-- other values -->
</servlet>

Howie wrote:

> where does ApplicationResources.properties have to be to get things to
> Just Work(tm) ?  i've put it in
> WEB-INF/classes/my/package/tree/ApplicationResources.properties,
> WEB-INF/classes, WEB-INF, the app root, etc.  but struts ( bean:message )
> still cant manage to find something thats in the .properties file.
> interestingly, the struts example apps have no problems with grabbing info
> from the .properties file.  they can even look at _my_ properties file,
> but as soon as i try to use it in my app, no go.
>
> ---
> Howie <ca...@toodarkpark.org>   URL: http://www.toodarkpark.org
>      "This sort of thing has cropped up before and has always been
>       due to human error." -- HAL



RE: location of ApplicationResources.properties...

Posted by Toni Charlot <to...@fdplus.com>.
Did you also put the new uri in the web.xml file as a parameter value for
the ActionServlet?

-----Original Message-----
From: Howie [mailto:caffeine@TooDarkPark.org]
Sent: Wednesday, August 22, 2001 11:15 AM
To: struts-user@jakarta.apache.org
Cc: caffeine@toodarkpark.org
Subject: location of ApplicationResources.properties...



where does ApplicationResources.properties have to be to get things to
Just Work(tm) ?  i've put it in
WEB-INF/classes/my/package/tree/ApplicationResources.properties,
WEB-INF/classes, WEB-INF, the app root, etc.  but struts ( bean:message )
still cant manage to find something thats in the .properties file.
interestingly, the struts example apps have no problems with grabbing info
from the .properties file.  they can even look at _my_ properties file,
but as soon as i try to use it in my app, no go.

---
Howie <ca...@toodarkpark.org>   URL: http://www.toodarkpark.org
     "This sort of thing has cropped up before and has always been
      due to human error." -- HAL