You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marius Gabor <ga...@s-m-c.de> on 2002/05/07 11:31:03 UTC

Cannot find message resources - DESPERATION

Hi!

I have the same problem with the messages:

Cannot find message resources under key org.apache.struts.action.MESSAGE

I have already read here about solutions. None worx for me, or I am so 
dumb that I can't get it right. I've attached the web.xml and 
struts-config.xml files.

Please help me!!! 10x in advance!

Marius




Re: Cannot find message resources - DESPERATION

Posted by Marius Gabor <ga...@s-m-c.de>.
Hi, Nico!

I've tried and didn't work also... :(((

Marius

Nicolas De Loof wrote:
> Your struts-config:
> <message-resources
>   key="org.apache.struts.action.MESSAGE"
>   name="ApplicationResources.properties" />
> 
> I'm using Struts 1.0.2, so I cannot test it, but i think your message
> ressource bundle should be declared in struts-config with a "parameter"
> attribute without the ".properties" extension:
> 
>   <message-resources
>       key="org.apache.struts.action.MESSAGE"
>       parameter="ApplicationResources"/>
> 
> Struts_config_1_1.dtd don't have anay "name" attribute for message-ressource
> element. Perhaps you may use struts-config validation at startup.
> 
> 
> Nico
> 


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


Re: Cannot find message resources - DESPERATION

Posted by Nicolas De Loof <ni...@cgey.com>.
Your struts-config:
<message-resources
  key="org.apache.struts.action.MESSAGE"
  name="ApplicationResources.properties" />

I'm using Struts 1.0.2, so I cannot test it, but i think your message
ressource bundle should be declared in struts-config with a "parameter"
attribute without the ".properties" extension:

  <message-resources
      key="org.apache.struts.action.MESSAGE"
      parameter="ApplicationResources"/>

Struts_config_1_1.dtd don't have anay "name" attribute for message-ressource
element. Perhaps you may use struts-config validation at startup.


Nico

> Hi!
>
> I have the same problem with the messages:
>
> Cannot find message resources under key org.apache.struts.action.MESSAGE
>
> I have already read here about solutions. None worx for me, or I am so
> dumb that I can't get it right. I've attached the web.xml and
> struts-config.xml files.
>
> Please help me!!! 10x in advance!
>
> Marius
>
>
>
>


----------------------------------------------------------------------------
----


> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
> <struts-config>
> <message-resources
> key="org.apache.struts.action.MESSAGE"
> name="ApplicationResources.properties"
> />
> </struts-config>
>
>


----------------------------------------------------------------------------
----


> <?xml version="1.0"?>
>
> <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN' 'http://java.sun.com/j2ee/dtds/web-app_2_2.dtd'>
> <web-app>
>     <display-name>List</display-name>
>     <servlet>
>         <servlet-name>ListTag</servlet-name>
>         <jsp-file>ListTag.jsp</jsp-file>
>         <init-param>
>             <param-name>application</param-name>
>
<param-value>WEB-INF/ApplicationResources.properties</param-value>
>         </init-param>
>         <init-param>
>             <param-name>config</param-name>
>             <param-value>WEB-INF/struts-config.xml</param-value>
>         </init-param>
>         <load-on-startup>1</load-on-startup>
>     </servlet>
>     <welcome-file-list>
>         <welcome-file>ListTag.jsp</welcome-file>
>     </welcome-file-list>
> </web-app>
>
>


----------------------------------------------------------------------------
----


> --
> 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>