Announcement Announcement Module
Collapse
No announcement yet.
Struts ApplicationResources using Spring Framework Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Struts ApplicationResources using Spring Framework

    Howdy People!

    Our project has recently started using Spring Framework ( 3.0 ) version and I had this question about Struts ApplicationResources.properties. We have this file mentioned as:

    Code:
    <message-resources   parameter="ApplicationResources" null="false"/>
    As shown above, we have around 10-15 modules which has its own struts-config.xml and line as above, now since we have started using Spring framework, I would like to use the Spring "ReloadableResourceBundleMessageSource" class from the package org.springframework.context.support so that we could reload the property key values instantly instead of waiting to restart the server. Is there any way we could override the struts-config configuration above and use this:


    Code:
    <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">  
            <property name="basename" value="/WEB-INF/messages/messages" />  
            <property name="cacheSeconds" value="0" />  
     </bean>
    Any help will be appreciated?

    Thanks,
    Yogendra N Joshi
Working...
X