I’m attempting to set up a ReloadableResourceBundleMessageSource to use in my JSPs and Controller. Here’s the pieces I have. The message key is printing to the screen in my jsp. What am I missing?
spring-servlet.xml
<bean id="messages" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<property name="basenames">
<value>/WEB-INF/messages/login</value>
</property>
</bean>
login_en.properties
login.title=Welcome to the login page.
home.jsp
<body>
<spring:message code="login.title" text="login.title"></spring:message>
</body>
Yeah, this tripped me up for a long time too. The bean id has to be called messageSource.