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:
But moving my messages.properties outside the classpath doesn't work.Code:<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"> <property name="basename" value="WEB-INF/messages"/> <property name="cacheSeconds" value="1"/> </bean>
Also I have the following definitions:
web.xml:
struts-config.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>
How should I configure the last two?Code:<!-- ================================ Message Resources Definitions --> <message-resources parameter="messages" />
Thanks,


Reply With Quote