Results 1 to 3 of 3

Thread: ResourceBundleMessageSource without the message tag

  1. #1
    Join Date
    Nov 2005
    Posts
    8

    Default 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. #2
    Join Date
    Jul 2005
    Posts
    246

    Default

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

    Bob

  3. #3
    Join Date
    Nov 2005
    Posts
    8

    Default 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •