[ 
https://issues.apache.org/struts/browse/STR-2272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41953
 ] 

Paul Benedict commented on STR-2272:
------------------------------------

The messages HashMap currently stores all the messages across all locales. Thus 
as you get messages from other locales, the returned keys will grow. I don't 
think that's what you want. The locale has to be specified, in my opinion. Do 
you want only keys for that locale? 

> keys of MessageResources
> ------------------------
>
>                 Key: STR-2272
>                 URL: https://issues.apache.org/struts/browse/STR-2272
>             Project: Struts 1
>          Issue Type: Improvement
>          Components: Extras
>    Affects Versions: 1.2.4
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Thomas Hartwig
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> I have seen some rare requests to get the keys out of a MessageResources and
> some quirks around it. (for me I read the resource file for my own via
> org.apache.commons.configuration.PropertiesConfiguration at servlet startup, 
> oh
> brother)
> The best would be to have a method like getKeys in PropertyMessageResources.
> PS: I need this for implementing some helper tooltips on a page which should
> dynamic be loaded if available in the properties.

-- 
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