You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/03/20 19:05:27 UTC
DO NOT REPLY [Bug 18194] New: -
Enhance MessageResources to enable several definitions for the same ServletContext attribute key
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18194>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18194
Enhance MessageResources to enable several definitions for the same ServletContext attribute key
Summary: Enhance MessageResources to enable several definitions
for the same ServletContext attribute key
Product: Struts
Version: 1.1 RC1
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: Other
Component: Utilities
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: gcompagnon@hotmail.com
/**
* 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org