I have created a project basic project in Struts (Welcome Struts). In the package com.myapp.struts (which is ubicated in the Source files) y create a properties file called MessageResources_es_ES, which has the following content:

I have found out that my locale is [es]. But the problem still continues because, when I create the Welcome Struts application in Netbeans, In the package com.myapp.struts there is a default properties file create called ApplicationResource.properties, which has in English.

(1)You have defined the same message key in different resource bundle
(ApplicationResource and MessageResources). This may be not a good way
to maintenance resource

(2)<message-resources parameter="com/myapp/struts/MessageResources_es"/>
is not very good.
The resource bundle should be reference by base name,
and the suffix will be appended automatically for different user locale.
So, I suggest you to change the setting to
<message-resources parameter="com/myapp/struts/MessageResources"/>

(3)If you define more than one [message-resources] in
struts-config.xml, they need to be distinguished by different "key",
and also, you need specify the bundle when you reference them.
For example, if you defined:
<message-resources key="resources01" parameter="package.Resources01"/>
<message-resources key="resources02" parameter="package.Resources02"/>

then you should reference them by:
<bean:message bundle="resources02" key="some.message.key"/>

(4)I am not very sure, but I think the resource bundle name in
struts-config.xml should be separated by dot instead of slash

>
> Hi Steven and Li,
>
> I have found out that my locale is [es]. But the problem still continues
> because, when I create the Welcome Struts application in Netbeans, In the
> package com.myapp.struts there is a default properties file create called
> ApplicationResource.properties, which has in English.
>
> welcome.title=Struts Application
> welcome.heading=Struts Applications in Netbeans!
> welcome.message=It's easy to create Struts applications with NetBeans.
>
> As I wanted to create a multilanguage application in Spasnish and English I
> created MessageResources_es.properties, which the following content.
>
> welcome.title=Holamundo Struts
> welcome.heading=Bienvenida!
> welcome.message=Holamundo Struts
>
> And In the Struts-config I add the following line <message-resources
> parameter="com/myapp/struts/MessageResources_es"/>
>
> below to <message-resources
> parameter="com/myapp/struts/ApplicationResource"/>
>
> But when I run the application it still gives me the same error.
>
> Regards
> --
> View this message in context: http://old.nabble.com/Missing-message-for-key-%22welcome.title%22-in-bundle-%22%28default-bundle%29%22-for-locale-es-tp30175630p30179101.html> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]> For additional commands, e-mail: [hidden email]>
>

(1)You have defined the same message key in different resource bundle
(ApplicationResource and MessageResources). This may be not a good way
to maintenance resource

(2)<message-resources parameter="com/myapp/struts/MessageResources_es"/>is not very good.
The resource bundle should be reference by base name,
and the suffix will be appended automatically for different user locale.
So, I suggest you to change the setting to
<message-resources parameter="com/myapp/struts/MessageResources"/>

(3)If you define more than one [message-resources] in
struts-config.xml, they need to be distinguished by different "key",
and also, you need specify the bundle when you reference them.
For example, if you defined:
<message-resources key="resources01" parameter="package.Resources01"/><message-resources key="resources02" parameter="package.Resources02"/>

then you should reference them by:
<bean:message bundle="resources02" key="some.message.key"/>

(4)I am not very sure, but I think the resource bundle name in
struts-config.xml should be separated by dot instead of slash