You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2007/09/01 05:55:34 UTC
[jira] Closed: (STR-1329) [resources] Enhance MessageResources to
enable several definitions for the same ServletContext attribute key
[ https://issues.apache.org/struts/browse/STR-1329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict closed STR-1329.
------------------------------
Resolution: Won't Fix
This can now be implemented by a custom subclass that uses Commons Configuration. That library allows aggregation of property files. No need for Struts to support this out of the box.
> [resources] Enhance MessageResources to enable several definitions for the same ServletContext attribute key
> ------------------------------------------------------------------------------------------------------------
>
> Key: STR-1329
> URL: https://issues.apache.org/struts/browse/STR-1329
> Project: Struts 1
> Issue Type: Improvement
> Components: Core
> Affects Versions: Nightly Build
> Environment: Operating System: All
> Platform: All
> Reporter: Guillaume Compagnon
> Priority: Minor
> Attachments: CompositeMessageResourcesPatch.jar
>
>
> /**
> * Concrete subclass of <code>MessageResources</code> that implements a
> Composite Pattern
> * for registering several MessageResources objets under the same
> ServletContext attribute key.
> * <br>
> * This class is automatically used by <code>ActionServlet</code> for the cases
> where there are several <code>MessageResources</code> entries in the config file
> * with the default key (<code>org.apache.struts.action.MESSAGE</code>) or with
> the same key (bundle name).
> * <br>
> * This class delegates the searching of a text message to each children until
> one message is found.
> * <p>
> *
> * @author Guillaume Compagnon
> * @version 1.0
> */
> so the struts-config.xml file is possible :
> <!-- ================================ Message Resources Definitions -->
> <message-resources null="false" parameter="ressources.ApplicationResources" />
> <message-resources null="false"
> parameter="ressources.BankingMessageResources" />
> and we ve got every messages from the 2 bundles.
> ask me the source code.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.