Announcement Announcement Module
Collapse
No announcement yet.
ResourceBundleMessageSource without the message tag Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ResourceBundleMessageSource without the message tag

    I'm using a mixture of JSP views and Xslt Views and need to support i18n throughout (meaning I can't simply use the spring:message tag).

    Is there a way to use ResourceBundleMessageSource to allow me to call resolveCode() directly. This would let me use the same message.properties files across all my views.

    Many thanks

  • #2
    Just inject it into your views. Then you can call it directly and place the resulting messages into your model.

    Bob

    Comment


    • #3
      Solved...

      Did some further reading and discovered that as long as the beans have access to the ApplicationContext you can call context.getMessage() to get access to localised messages.

      Comment

      Working...
      X