Here's the correlation (for anyone new to java properties files)
Notice the 'path' and 'to' and change them to what you need.



If using within web.xml (Struts 1.0.x):
    ...
    ...
    <init-param>
      <param-name>application</param-name>
      <param-value>path.to.ApplicationResources</param-value>
    </init-param>
    ...
    ...


or (Struts 1.1) in the struts-config.xml
    ...
    ...
  <!-- ========== Message Resources Definitions
=========================== -->
  <message-resources
    parameter="path.to.ApplicationResources"/>
    ...
    ...

then make sure that you have the property file in

/servletcontext/WEB-INF/classes/path/to/ApplicationResources.properties
                                ^^^  ^^


where servletcontext is the name of the .war file


I hope that helps.


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -----Original Message-----
> From: Hobie Orris [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 12, 2002 7:29 PM
> To: Struts Users Mailing List
> Subject: RE: Beginner's problem
>
>
> Thanks for replying.  I'm not using any packages since this is
> just a test
> program for me to become familiar with Struts, so that is why the
> properties file is under WEB-INF/classes directly.  Does this make a
> difference?
>
> At 01:57 PM 12/08/02, you wrote:
> >Hi,
> >
> >Make sure you have ApplicationResources.properties file under
> >c:\whatever\com\xyz\
> >and in your web.xml specify...
> >
> >      <init-param>
> >        <param-name>application</param-name>
> >        <param-value>com.xyz.ApplicationResources</param-value>
> >      </init-param>
> >
> >...Priyank
> >
> >
> >-----Original Message-----
> >From: Hobie Orris [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, August 12, 2002 1:42 PM
> >To: Struts Users Mailing List
> >Subject: Beginner's problem
> >
> >
> >I am using Struts 1.02 on Tomcat 4, and I get this message:
> >Cannot find message resources under key org.apache.struts.action.MESSAGE
> >
> >I note the previous discussion on this topic in the archive has
> not pointed
> >to a solution, so I'm asking it again.
> >
> >I deploy an .ear file containing a .war file which contains     (among
> >others):
> >WEB-INF/lib/            struts.jar, parser.jar and jaxp.jar
> >WEB-INF/classes/        ApplicationResources.properties
> >WEB-INF/                        web.xml, struts-config.xml
> >
> >The web.xml contains:
> >   <servlet>
> >      <servlet-name>ActionServlet</servlet-name>
> >      <display-name>ActionServlet</display-name>
> >
> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> >      <init-param>
> >        <param-name>application</param-name>
> >        <param-value>ApplicationResources</param-value>
> >      </init-param>
> >         ...
> >
> >I'm missing something here, but I don't know what.  Can someone please
> >advise me on this?
> >
> >Hobie Orris
> >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> ><mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to