I solved it a month ago.
When you are using ResourceBundleMessageSource a want use jstl tag fmt:message it is necessary to set message resource for fmt explicitly on your view:
Code:
<fmt:setBundle basename="WEB-INF/messages"/>
Btw...I have my message resource in classpatch ("classes" folder) so in my applicationContext.xml i have only
Code:
<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<property name="basenames">
<list>
<value>messages</value>
</list>
</property>
</bean>
so my view (jsp) looks like:
Code:
<fmt:setBundle basename="messages"/>
Code:
<fmt:message key="page.title"/>
and it works...
but...better solution is to use
Code:
<spring:message code="page.title"/>
is runs without need of explicit setting like fmt does...
At the and a little snippet from spring:message documentation
The spring:message tag provides you with internationalization support using Spring's MessageSource concept. The MessageSource is an interface providing functionality for retrieving messages. It closely resembles JSTL's fmt:message-tag, however, the MessageSource classes can be integrated with the Spring context. Also, the spring:message- tag, works with the locale support that comes with Spring.
Regards an HTML escaping setting, either on this tag instance, the page level, or the web.xml level. Can also apply JavaScript escaping.
If "code" isn't set or cannot be resolved, "text" will be used as default message. Thus, this tag can also be used for HTML escaping of any texts.