Oops. Bad formatting. Let's try again:

//This is the bundle that the TableTag will use
Config.set(request, Config.FMT_LOCALIZATION_CONTEXT, BUNDLE);
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lane, Brad
Sent: Monday, January 10, 2005 3:08 PM
To: [email protected]
Subject: RE: [displaytag-user] Table Internationalization

You can do this in your Action(where BUNDLE is the name of your properties
file) :

//This is the bundle that the TableTag will use Config.set(request,
Config.FMT_LOCALIZATION_CONTEXT, BUNDLE); 

Or this in your jsp(where basename is the same as BUNDLE above):
<fmt:setBundle basename="tam-web"/>
 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Daniel
Kies
Sent: Monday, January 10, 2005 2:47 PM
To: [email protected]
Subject: [displaytag-user] Table Internationalization

Greetings.  I am trying to internationalize my table headings and I am
having several issues.  I am using struts.
First I looked at the documentation and it says the following:

 specifying a titlekKey attribute: the content of the titlekey will be used
to lookup a resource in a resource bundle and the value will be used in the
column header. If the specified key can't be found the ???key??? title will
be displayed.

-> This doesn't seem to jive.  1) The resource bundle is not being
picked up and shown.  2) If I put some garbage in there, the "???key???"
does not appear.

I did a lot of research on the web and on the mailing list and I could not
find what I need.  I found one person that said to configure the web.xml
file to name the struts implementation of the I18n struts adapter, and I did
as follows:
        <context-param> 
               
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
                <param-value>displaytag</param-value> 
                <description>Application Resource</description> 
        </context-param> 

I put a displaytag.properties file as the mail said in the WEB_INF\lib
directory to make sure it gets loaded.  Here are the contents:
locale.resolver=org.displaytag.localization.I18nStrutsAdapter 

That is all I have.  I don't understand what I need to do to configure the
internationalization with struts.  If anyone can help I would really
appreciate it, and I will promise to write up a step by step email on how to
set this up.

Thanks.


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE
limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

****************************************************************************
This email may contain confidential material. 
If you were not an intended recipient,
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE
limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

**************************************************************************** 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to