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-03-24 14:20 ------- This is a quick fix. Just modify the method selectModule(String, HttpServletRequest, ServletContext) in org.apache.struts.util.RequestUtils to the following dump can fix this problem. However the keys used to store message resources is too general and may crashed with other attribute names, I suggest to modify all the MessageResources keys to some more unique representation for a more complete fix. public static void selectModule( String prefix, HttpServletRequest request, ServletContext context) { // Expose the resources for this module ModuleConfig config = (ModuleConfig) context.getAttribute(Globals.MODULE_KEY + prefix); if (config != null) { request.setAttribute(Globals.MODULE_KEY, config); } else { request.removeAttribute(Globals.MODULE_KEY); } // Expose all message resources for this module /* MessageResources resources = (MessageResources) context.getAttribute(Globals.MESSAGES_KEY + prefix); if (resources != null) { request.setAttribute(Globals.MESSAGES_KEY, resources); } else { request.removeAttribute(Globals.MESSAGES_KEY); }*/ 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]