I am using the display:table tag for displaying results in my JSP, i need to get the column titles from a resource bundle. How do i use the titleKey attribute to pick up the message from a specific bundle. In my struts-config.xml i have all the entries for the bundle and using a bean:message tag i am able to access the label but not with the title key. Can anyone please tell me if i need to add anything to the displaytag.properties file so that the resource bundle is accessible in my JSP
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Im surprise because i think that the titleKey should be in displaytag.properties but so dont work. I put in ApplicationResources.properties and then work well.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using the display:table tag for displaying results in my JSP, i need to get the column titles from a resource bundle. How do i use the titleKey attribute to pick up the message from a specific bundle. In my struts-config.xml i have all the entries for the bundle and using a bean:message tag i am able to access the label but not with the title key. Can anyone please tell me if i need to add anything to the displaytag.properties file so that the resource bundle is accessible in my JSP
Hello, i have the same problem. In struts-config.xml i have:
<message-resources parameter="ApplicationResources" null="false" />
and i can show <bean:message key="index.welcome"/> for some languages.
On the other hand, with displaytags i havent readed that its necesary put any in struts-config.xml.
I have a displaytag.properties with a specific titleKey but the result doesnt correct when i write:
<display:column titleKey="columna.editar"/>
In tomcat console, i see:
[ INFO] 15:49 (TableProperties.java:getLocaleResolverInstance:456)
No LocaleResolver configured.
[ INFO] 15:50 (TableProperties.java:geResourceProvider:1015)
I18nResourceProvider initialized to org.displaytag.localization.I18nJstlAdapter.
In my displaytag.properties i have:
locale provider (Jstl provider by default)
locale.provider=org.displaytag.localization.I18nJstlAdapter
locale.resolver (nothing by default, simply use locale from request)
locale.resolver=
What must i write in displaytag.properties for correct the result and show de titleKey?
Greetings and sorry for my english.
Use:
locale.provider=org.displaytag.localization.I18nStrutsAdapter
http://displaytag.sourceforge.net/i18n.html
Thanks for the answer. I havent seen that link. I looked http://displaytag.sourceforge.net/configuration.html but not yours.
Im surprise because i think that the titleKey should be in displaytag.properties but so dont work. I put in ApplicationResources.properties and then work well.