Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-3063

Incorrect lookup sequence of resource bundle

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.3.6
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Windows 2000 server + JDK 1.4.2_04
    • Flags:
      Patch, Important

      Description

      The following is the lookup sequence of Struts when the language of IE is "en_US"
      (user locale or session locale) and the locale of JVM is "zh_CN"(default
      locale).
      1. ApplicationResources_en_US.properties
      2. ApplicationResources_en.properties
      3. ApplicationResources_zh_CN.properties.
      4. ApplicationResources.properties.

      There are two problems in this lookup sequence. The first, Struts should pick
      up ApplicationResources.propertis after ApplicationResources_en.propertis. The
      second, if ApplicationResources_zh_CN.properties doesn't exist, Struts should
      pick up ApplicationResources_zh.properties. The correct lookup sequence should
      be
      1. ApplicationResources_en_US.properties
      2. ApplicationResources_en.properties
      3. ApplicationResources.properties
      4. ApplicationResources_zh_CN.properties.
      5. ApplicationResources_zh.properties.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                qiuhao qiuhao
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: