Return the message resources configurations for this module. If there are none, a zero-length array is returned.
291292293294295296297298299300301
private final String[] createStrutsBundleList() { String[] names = null; ModuleConfig config = lookupCurrentModuleConfig(); if(config != null) { MessageResourcesConfig[] mrs = config.findMessageResourcesConfigs(); names = new String[mrs.length]; if(mrs != null) { for(int i = 0; i < mrs.length; i++) { if(mrs[i].getKey().equals(Globals.MESSAGES_KEY)) names[i] = DEFAULT_STRUTS_BUNDLE_NAME;
11091110111111121113111411151116111711181119
// Just return it if it's already registered. if ( request.getAttribute( Globals.MODULE_KEY ) == config ) return config; request.setAttribute( Globals.MODULE_KEY, config ); MessageResourcesConfig[] mrConfig = config.findMessageResourcesConfigs(); Object formBean = unwrapFormBean( getCurrentActionForm( request ) ); for ( int i = 0; i < mrConfig.length; i++ ) { String key = mrConfig[i].getKey();
173174175176177178179180181182183
this.keyMethodMap = this.getKeyMethodMap(); ModuleConfig moduleConfig = (ModuleConfig) request.getAttribute(Globals.MODULE_KEY); MessageResourcesConfig[] mrc = moduleConfig.findMessageResourcesConfigs(); // Look through all module's MessageResources for (int i = 0; i < mrc.length; i++) { MessageResources resources = this.getResources(request, mrc[i].getKey());
245246247248249250251252253254255
request.setAttribute(Globals.MODULE_KEY, config); } else { request.removeAttribute(Globals.MODULE_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) {
11611162116311641165116611671168116911701171
// Just return it if it's already registered. if ( request.getAttribute( Globals.MODULE_KEY ) == moduleConfig ) return moduleConfig; request.setAttribute( Globals.MODULE_KEY, moduleConfig ); MessageResourcesConfig[] mrConfig = moduleConfig.findMessageResourcesConfigs(); Object formBean = unwrapFormBean( getCurrentActionForm( request ) ); for ( int i = 0; i < mrConfig.length; i++ ) { String key = mrConfig[i].getKey();
142143144145146147148149150151152
if(resources != null) entries.add(new BundleNodeEntry(DEFAULT_STRUTS_BUNDLE_NAME)); ModuleConfig moduleConfig = lookupCurrentModuleConfig(); if(moduleConfig != null) { MessageResourcesConfig[] mrs = moduleConfig.findMessageResourcesConfigs(); for(int i = 0; i < mrs.length; i++) { String resourceKey = mrs[i].getKey() + moduleConfig.getPrefix(); resources = lookupStrutsBundle(resourceKey); entries.add(new BundleNodeEntry(mrs[i].getKey())); }
179180181182183184185186187188189
} } else { ModuleConfig moduleConfig = lookupCurrentModuleConfig(); if(moduleConfig != null) { MessageResourcesConfig[] mrs = moduleConfig.findMessageResourcesConfigs(); if(mrs != null) { for(int i = 0; i < mrs.length; i++) { /* skip the default bundle */ if(mrs[i].getKey().equals(Globals.MESSAGES_KEY)) continue;
294295296297298299300301302303304
private String[] createStrutsBundleList() { String[] names = null; ModuleConfig config = lookupCurrentModuleConfig(); if(config != null) { MessageResourcesConfig[] mrs = config.findMessageResourcesConfigs(); names = new String[mrs.length]; if(mrs != null) { for(int i = 0; i < mrs.length; i++) { if(mrs[i].getKey().equals(Globals.MESSAGES_KEY)) names[i] = DEFAULT_STRUTS_BUNDLE_NAME;
11671168116911701171117211731174117511761177
160161162163164165166167168169170