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

Locale in default module defaults to false / controller config setting is ignored.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1 RC1
    • 1.1 Family
    • Core
    • None
    • Operating System: All
      Platform: All
    • 19040

    Description

      Setting the locale attribute in a controller element in struts-config.xml has
      no effect. The documentation states that locale should default to true (for
      both the controller element and the init-param in web.xml, but locale for a
      default module defaults to false.
      This appears to be a transitional bug due to temporary backwards-compatibility
      code. The defaultControllerConfig() method in ActionServlet effectively
      overrides and ignores any settings in the struts-config controller element.
      Lines 1453 and 1458 cause locale to default to false.

      Attachments

        Activity

          People

            dgraham@apache.org David Graham
            chris.jones@valtech.com Chris Jones
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: