This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Question related to messageSource

Hi,
This question is just partly related to Roo.
I'm using Roo as "best-practice-template" for a Spring app.

I also used the messageSource definition in the springmvc-config.xml..

However I keep getting a:
No message found under code 'my.title' for locale 'en_US'.
when using <spring:message code="my.title" />

I checked the config a couple of time but don't see anything wrong.
When I inject the messageSource in a controller I can retrieve the message using getMessage(..) without a problem, so the bundle is loaded.

Comment

I'm not using Roo currently, but I'm "using" it's best practices, by using same applicationContext, urlrewrite etc. So I use it as an example for a cusom plain Spring app.

Including messageSource bean in webmvc-config. But the message was not displayed, unitil I moved messageSource to applicationContext.xml. I did this following some comments in a different thread I mentioned in my earlier post.

I'm just wondering why it works in Roo, I guess there is nothing special going on?