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

I18nInterceptor dismisses browser provided locale (see XW-679)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.14, 2.1.6
    • 2.0.15, 2.1.8
    • None
    • None

    Description

      Copied from http://jira.opensymphony.com/browse/XW-679:

      Currently, the I18nInterceptor first looks up request parameters if a locale information is provided. If not, it looks up the session. Without respect to whether the session actually contains a locale under the lookup key, the lookup result is passed to saveLocale, which causes the locale to be set on the ActionContext. This will erase any previous setting of the ActionContext's locale. Unfortunately, this will always erase the browser locale found by the request dispatcher, which if provided will be set on ActionContext before I18nInterceptor comes into play.

      Attachments

        Issue Links

          Activity

            People

              rgielen René Gielen
              rgielen René Gielen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: