Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2918

Struts don't use the locale

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.14
    • 2.1.2
    • None
    • None
    • Windows, fr

    • Important

    Description

      Struts don't use the locale.

      The XWorkBasicConverter getLocale method always use the System locale :

      Locale locale = (Locale) context.get(ActionContext.LOCALE);
      if (locale == null)

      { locale = Locale.getDefault(); ----> No ActionContext.LOCALE key into context }

      I try by setting default locale and using the i18n interceptor, the result is the same.

      Attachments

        1. testLocaleStruts2.1.2OK.war
          2.52 MB
          lefebvre
        2. testLocale.war
          3.75 MB
          lefebvre

        Activity

          People

            Unassigned Unassigned
            jflefebvre lefebvre
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: