[ 
https://issues.apache.org/struts/browse/STR-1261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Antonio Petrelli resolved STR-1261.
-----------------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: Future)
         Assignee:     (was: Struts Developers)

In Tiles we don't won't to re-create JSTL's <fmt> tags. If you need to print a 
string mapped with a key, simply use:

<tiles:importAttribute name="attributeName" />
<fmt:message key="${attributeName}" />

> [tiles] key attribute for tiles (put & item)
> --------------------------------------------
>
>                 Key: STR-1261
>                 URL: https://issues.apache.org/struts/browse/STR-1261
>             Project: Struts 1
>          Issue Type: Improvement
>          Components: Tiles 1 Plugin
>    Affects Versions: Future
>         Environment: Operating System: All
> Platform: All
>            Reporter: Dan Allen
>            Priority: Minor
>
> It would be convenient to implement proper i18n in tiles if the put & item 
> tags
> had a "key" attribute.  This way, one could specify a bundle key instead of a
> value to be used for a tile attribute.  And example would be as foolows:
> <definition name="master" page="/layouts/master.jsp">
>   <put name="title" key="webapp.title"/>
> </definition>
> This way, when the attribute "title" is resolved, it does so by accessing the
> key in the message resources bundle.  This could also be convient in the
> SimpleMenuItem for an item tag
> <item key="link.home" link="/home.jsp"/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to