Announcement Announcement Module
No announcement yet.
ReloadableResourceBundleMessageSource and fmt:message Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • ReloadableResourceBundleMessageSource and fmt:message

    I am urgent need of some help please. I am trying to use ReloadableResourceBundleMessageSource, and although an Action class (are using Struts) can get the messages using applicationContext.getMessage() and also pickup the changes without restarting the server, I can not get the fmt:message tags to work either initially or in picking up the modified messages. Do you any idea of why this may be ?

    In a spring config file ::-
    <bean id="messageSource" class=" bleResourceBundleMessageSource">
    <property name="basename" value="WEB-INF/fmmSubscriber"/>
    <property name="cacheSeconds" value="1"/>

    In struts config file :-
    <message-resources parameter="WEB-INF/fmmSubscriber"/>
    Did try this as parameter="fmmSubscriber” but did not work
    In jsp :-
    <fmt:setLocale value="${sCache.locale}" />
    <fmt:setBundle basename="fmmSubscriber" />
    Did try this as "WEB-INF/fmmSubscriber" but did not work.
    The fmmSubscriber is held in WEB-INF as is suggested for ReloadableResourceBundleMessageSource.
    Thanks very much in advance, Rhiannon