Menu

using titleKey attribute of display:column

Help
Chaitu
2005-06-10
2012-10-08
  • Chaitu

    Chaitu - 2005-06-10

    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

     
    • msi_

      msi_ - 2005-07-12

      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.

       
      • Matt Raible

        Matt Raible - 2005-07-12

        Use:

        locale.provider=org.displaytag.localization.I18nStrutsAdapter

        http://displaytag.sourceforge.net/i18n.html

         
    • msi_

      msi_ - 2005-07-12

      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.

       

Log in to post a comment.

MongoDB Logo MongoDB