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
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.
we
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
> 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:
ht
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 ubicate
hi
u try like this in jsp page.
Quoting Gündüz Can Topal <[EMAIL PROTECTED]>:
> Hey
>
> I setup ApplicationResources.properties file in"com.trend.struts"
> package in "src" directory.
>
> In which I have
> title = "MY TITLE"
> element.
>
> My struts-config line as follows :
>
>
>
Gündüz Can Topal wrote:
I setup ApplicationResources.properties file in"com.trend.struts"
package in "src" directory.
Well, the webapp expects the properties file to be on your classpath,
not in your source directory.
When you create your WAR file or deploy your web application (presumably
Gündüz Can Topal wrote the following on 1/5/2006 9:19 AM:
I setup ApplicationResources.properties file in"com.trend.struts"
package in "src" directory.
Are you sure the file is being copied over to your com.trend.struts
directory in classes? A lot of times people forget to make sure build
s
The purpose for /ad is the module seperation.
as the property files are located under
\WEB-INF\classes\resources\i18n\ad
However, the problem is solved. The regional setting for the machine need to
be English(UK)..
learning curve is sucks >^<
Thanks for the help.
rgds,
Yen
-
The problem here is the tag in your jsp:
It should be:
"Why without '/ad' ?" you may ask. Probably the example you copied from is
a Struts module named 'ad'; in such cases, when the message-resources tag
is in a Struts module config, then / is appended to the
name of the messages resource. In
Hi,
Have you kept the properties file in the classpath.
Can you check this?
Thanks,
Satish
-Original Message-
From: Bibhu Kalyan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 10:59 AM
To: [EMAIL PROTECTED]
Subject: Missing message for key
Hi All,
I have a typical problem. R
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:
12 matches
Mail list logo