Bob Lee <[EMAIL PROTECTED]> wrote:
> 
> >In struts.config.xml:
> >   <message-resources 
> >             factory="xxx.yyy.struts.utils.DatabaseMessageResourcesFactory"
> >         parameter="java.resources.application" />
> 
> Am I correct in assuming that "java.resources.application" is the Struts 
default bundle name? 

"java.resources.application" is the property file name.  My code defaults to 
the property file if the database is unavailable or does not contain the 
key.   If you write your own class that does not use a propery file, you 
don't need to specify that parameter.


> For example, will:
> 
> <bean:message key="some.key"/>
> 
> pull the message from my custom factory?

It will invoke [String getMessage(Locale, String)] on the current "message 
resource" class which you will instantiate using your custom factory.


-Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to