You do not need to load the Message ressources. I would suggest you to place the following in your AS classpath : A file named : SimpleLog.properties (may be all small letters) with the following content : <snip> # # # # # # # Author : $Author$ # Revision : $Revision$ # Last updated : $Date$ # ################################################################### # Logging detail level, # Must be one of ("trace", "debug", "info", "warn", "error", or "fatal"). org.apache.commons.logging.simplelog.defaultlog=info
# Id : $Id$ # # Log # #### # # $Log$ # </snip> and another one : File named : commons-logging.properties file content is <snip> # # # # # # # Author : $Author$ # Revision : $Revision$ # Last updated : $Date$ # ################################################################### org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog # Id : $Id$ # # Log # #### # # $Log$ </snip> doing that you will allow to see the jakarta logging being flushed out : [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true[INFO] PropertyMessageResources - -Initializing, config='YourResource_1', returnNull=true[INFO] PropertyMessageResources - -Initializing, config='YourResource_2', returnNull=true[INFO] PropertyMessageResources - -Initializing, config='YourResource_3', returnNull=true[INFO] PropertyMessageResources - -Initializing, config='YourResource_4', returnNull=true[INFO] PropertyMessageResources - -Initializing, config='ApplicationResources', returnNull=true I have NO idea what decided on the order they are loaded as it is definitively NOT the order we declared them in our Struts-config.xml Cheers, \T, > Greetings, > > The following code snippet is from my ActionForm.validate() method. > What I don't like and wonder if there is a better way to this: is the > loading of the Message Resources. > I need to do this to get a value that is passed as a parameter to a > message. > > private static MessageResources messages = > MessageResources.getMessageResources("resources.ApplicationResources"); > > errors.add(ActionErrors.GLOBAL_ERROR, new > ActionMessage("errors.general.alphabetic.required", > messages.getMessage(hrOnlineLocale.getLocaleLocale(), > "label.first.name"))); > > Is there a better way to do this? > > TIA, > Glenn -- Thomas SMETS rue J. Wytsmanstraat 62 1050 Brussels --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]