I've only seen that when struts can't find the resource file or the key...
Savan Thongvanh
Berkley Technology Services
515.278.7725
Nothing to do with Struts. From the JSTL spec for fmt:message:
If the i18n localization context that this action determines does not have any
resource bundle, an error message of the form ???key??? is produced.
Try this:
context-param
: Re: Jstl i18n not working
I've only seen that when struts can't find the resource file or the key...
Savan Thongvanh
Berkley Technology Services
515.278.7725
Yansheng Lin
[EMAIL PROTECTED]To: 'Tag Libraries Users List'
[EMAIL PROTECTED]gis.com
cc
: Monday, November 10, 2003 11:18 AM
To: 'Tag Libraries Users List'
Subject: RE: Jstl i18n not working
Ah, I wonder...
In my struts.xml file, I define the resource file too:
!-- == Message Resources Definitions
=== --
message-resources
Typo: directory = /WEB-INF/classes/org/j2e_translate
-Original Message-
From: Morrow, Steve D. [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 11:22 AM
To: 'Tag Libraries Users List'
Subject: RE: Jstl i18n not working
Assuming
with the result?
-Original Message-
From: Morrow, Steve D. [mailto:[EMAIL PROTECTED]
Sent: November 10, 2003 10:22 AM
To: 'Tag Libraries Users List'
Subject: RE: Jstl i18n not working
Assuming then, that the ApplicationResources.properties file is not in a
*.jar, you may try making sure
So, based on your updated info, this should be:
context-param
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valueorg.j2e_translate.ApplicationResources/param-value
/context-param
And you should have your property file located at:
PROTECTED]
Sent: November 10, 2003 10:07 AM
To: Tag Libraries Users List
Cc: 'Tag Libraries Users List'
Subject: Re: Jstl i18n not working
I've only seen that when struts can't find the resource file or the key...
Savan Thongvanh
Berkley Technology Services
515.278.7725
:
11/10/2003 11:29 Subject: RE: Jstl i18n not working
AM
--
Oh, wait, why do I need basename? Ah, I don't understand this very well
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: November 10, 2003 10:28 AM
To: Tag Libraries Users List
Subject: Re: Jstl i18n not working
So, based on your updated
PROTECTED]
Sent: Monday, November 10, 2003 11:35 AM
To: 'Tag Libraries Users List'
Subject: RE: Jstl i18n not working
Oh, I see. I can find the resource bundle now for my other
fmt:message. But it still doesn't solve my first problem.
That's why I got so confused. I guess it has something
:28 AM
To: Tag Libraries Users List
Subject: Re: Jstl i18n not working
So, based on your updated info, this should be:
context-param
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valueorg.j2e_translate.ApplicationResources/param-value
/context-param
anything in web.xml. Way better than changing anything in struts.xml.
Stupid ActionMapping:).
Thanks for your help!
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: November 10, 2003 10:41 AM
To: Tag Libraries Users List
Subject: RE: Jstl i18n not working
Okay
are other keys working?
Savan Thongvanh
Berkley Technology Services
515.278.7725
CONFIDENTIALITY NOTICE: This e-mail and the transmitted documents contain
private, privileged and confidential information belonging to the sender.
The information therein is solely for the use of the addressee.
:).
Thanks for your help!
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: November 10, 2003 10:41 AM
To: Tag Libraries Users List
Subject: RE: Jstl i18n not working
Okay, you've got a file called ApplicationResources.properties, right? If
it's
in WEB
To: Tag Libraries Users List
Subject: RE: Jstl i18n not working
You shouldn't have to restart TC just because you've made a
Struts config change. You may have to *redeploy* the app, but
that's different from restarting TC.
Quoting Yansheng Lin [EMAIL PROTECTED]:
Ok, got it working. I
16 matches
Mail list logo