Re: Missing message for key "welcome.title" in bundle "(default bundle)" for locale es
I think there are several problem (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) 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 (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: then you should reference them by: (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 Li, Now it runs. PD: Resource bundle runs with dots or separating with slahs 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-tp30175630p30182332.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Missing message for key "welcome.title" in bundle "(default bundle)" for locale es
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 below to 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: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Missing message for key "welcome.title" in bundle "(default bundle)" for locale es
I think there are several problem (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) 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 (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: then you should reference them by: (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 2010/11/10 bladu : > > 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 parameter="com/myapp/struts/MessageResources_es"/> > > below to 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: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Missing message for key "welcome.title" in bundle "(default bundle)" for locale es
> try parameter="com/myapp/struts/MessageResources"/> This is right. The name of a resource bundle, should not include the locale suffix. Actually, a resource bundle, contains several resource files which have the same base name and different suffix for each locale. For more information, see: http://download.oracle.com/javase/6/docs/api/java/util/ResourceBundle.html > and make sure your locale is "es_ES" and not just "es" (not sure if it > matters, but just to be on the save side) It matters. When user locale is [es_ES], the resource locale can be used should be (in the priority order): (1)es_ES or (2)es or (3)NONE When user locale is [es], the resource locale can be used should be (in the priority order): (1)es or (2)NONE Which means, resource locale [es_ES] can not be used for user locale [es] - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Missing message for key "welcome.title" in bundle "(default bundle)" for locale es
try and make sure your locale is "es_ES" and not just "es" (not sure if it matters, but just to be on the save side) On Wed, Nov 10, 2010 at 6:00 AM, bladu wrote: > > Hi, > > 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: > > welcome.title=Holamundo Struts > welcome.heading=Bienvenida! > welcome.message=Holamundo Struts > > In the struts-config.xml y put the following file: parameter="com/myapp/struts/MessageResources_es_ES"/> > > > When I try to run the aplication Apache tomcat gices me the following > error: > Missing message for key "welcome.title" in bundle "(default bundle)" for > locale es > > > I would be very grateful if somebody could help me to solve this question. > > Regards and thanks with anticipation. > -- > 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-tp30175630p30175630.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Missing message for key "welcome.title" in bundle "(default bundle)" for locale es
Hi, 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: welcome.title=Holamundo Struts welcome.heading=Bienvenida! welcome.message=Holamundo Struts In the struts-config.xml y put the following file: When I try to run the aplication Apache tomcat gices me the following error: Missing message for key "welcome.title" in bundle "(default bundle)" for locale es I would be very grateful if somebody could help me to solve this question. Regards and thanks with anticipation. -- 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-tp30175630p30175630.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Missing message for key "welcome.title"
Make sure that the properties file (Resource Bundle file) is set properly in the struts configuration file (usually, struts-config.xml) and check that welcome.title property is defined in the resources file. The entry for the Message Resources looks like the following in the struts config file: Also, check that this resources file is in the classpath. Thanks, Venkat -Original Message- From: Krishna Garimella [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 4:10 PM To: [EMAIL PROTECTED] Subject: Missing message for key "welcome.title" Hi, I have downloaded jakarta-struts-1.1 and installed it as per the installation instructions. When I try to run the tutorial I get the following message Missing message for key "welcome.title". I did search the archives and tried all the fixes available for this problem, but nothing works. Any help is appreciated. Thanks, Krishna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Missing message for key "welcome.title"
Hi, I have downloaded jakarta-struts-1.1 and installed it as per the installation instructions. When I try to run the tutorial I get the following message Missing message for key "welcome.title". I did search the archives and tried all the fixes available for this problem, but nothing works. Any help is appreciated. Thanks, Krishna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]