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 2006/11/26 07:17:58 UTC
[jira] Updated: (STR-1329) [resources] Enhance MessageResources to
enable several definitions for the same ServletContext attribute key
[ http://issues.apache.org/struts/browse/STR-1329?page=all ]
Paul Benedict updated STR-1329:
-------------------------------
Bugzilla Id: (was: 18194)
Component/s: Core
(was: Unknown)
> [resources] Enhance MessageResources to enable several definitions for the same ServletContext attribute key
> ------------------------------------------------------------------------------------------------------------
>
> Key: STR-1329
> URL: http://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
> Assigned To: Ted Husted
> 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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira