Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-425

MessagesManager does not correctly load JSTL Localization in init()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.1 Final
    • None
    • core
    • None
    • Resin 3.0.13; and all other J2EE containers that use Config.FMT_LOCALIZATION_CONTEXT without scope.

    Description

      Problem is as follows:

      context.setAttribute(Config.FMT_LOCALIZATION_CONTEXT + ".application", MessagesManager.DEFAULT_BASENAME);

      only works on JSTL implementations which append the REQUEST_SCOPE (.application) in the servlet context.

      Resin and some other J2EE containers do not do this. For these containers, you must instead use:

      context.setAttribute(Config.FMT_LOCALIZATION_CONTEXT, MessagesManager.DEFAULT_BASENAME);

      without the appended .application.

      The solution is to do both in the init() method.

      This issue also arises in the Spring Framework, see:
      http://www.javaresearch.org/source/spring1.0.2/org/springframework/web/servlet/support/JstlUtils.java.html

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              barik Titus Barik
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD