Menu

How to use bean:message in titleKey of Column

Help
Yarra
2006-03-07
2012-10-09
  • Yarra

    Yarra - 2006-03-07

    Hi,
    i have small problem display the titleKey of the Column tag. my resource bundle is in resource.application,i also setting the message-resource parameter in struts-config.xml.i am using the titleKey like this.

    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    .......
    <display:column property="name" titleKey="<bean:message bundle='resource.application' key='sample.name'/>"/>

    but,it is taking the property value

    help me how to using the bean tag in titlekey?

    Srinivas

     
    • Peter

      Peter - 2006-03-30
      1. in the displaytag.properties
        set: locale.provider=org.displaytag.localization.I18nStrutsAdapter
        (the default = I18JstlAdapter)
        displaytag will use the Struts.properties
      2. titleKey="sample.name"

      I dont know if it is also working with bundle..

      Peter

       

Log in to post a comment.

MongoDB Logo MongoDB