ReloadableResourceBundleMessageSource only with Spring MVC?
Does ReloadableResourceBundleMessageSource works only with the <spring:message> tag or in Spring MVC ?
I wanted to make it work with Struts, and I added this to my app context:
Code:
<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<property name="basename" value="WEB-INF/messages"/>
<property name="cacheSeconds" value="1"/>
</bean>
But moving my messages.properties outside the classpath doesn't work.
Also I have the following definitions:
web.xml:
Code:
<!-- Define the basename for a resource bundle for I18N -->
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>messages</param-value>
</context-param>
struts-config.xml:
Code:
<!-- ================================ Message Resources Definitions -->
<message-resources parameter="messages" />
How should I configure the last two?
Thanks,