DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=27332>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27332 The bundle attr do not have subapp resolution. ------- Additional Comments From [EMAIL PROTECTED] 2004-07-10 10:20 ------- Patch to the current version in CVS repository. Source file = org.apache.struts.util.ModuleUtils /** * Select the module to which the specified request belongs, and * add corresponding request attributes to this request. * * @param prefix The module prefix of the desired module * @param request The servlet request we are processing * @param context The ServletContext for this web application */ public void selectModule( String prefix, HttpServletRequest request, ServletContext context) { // Expose the resources for this module ModuleConfig config = getModuleConfig(prefix, context); if (config != null) { request.setAttribute(Globals.MODULE_KEY, config); } else { request.removeAttribute(Globals.MODULE_KEY); } /* MessageResources resources = (MessageResources) context.getAttribute(Globals.MESSAGES_KEY + prefix); if (resources != null) { request.setAttribute(Globals.MESSAGES_KEY, resources); } else { request.removeAttribute(Globals.MESSAGES_KEY); }*/ // Richard C. L. Li: patch to expose all message resources // Expose all message resources for this module MessageResourcesConfig[] mrConfig = config.findMessageResourcesConfigs(); for(int i = 0; i < mrConfig.length; i++) { String key = mrConfig[i].getKey(); MessageResources resources = (MessageResources) context.getAttribute(key + prefix); if (resources != null) { request.setAttribute(key, resources); } else { request.removeAttribute(key); } } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]