struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lefebvre (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (WW-2918) Struts don't use the locale
Date Tue, 16 Dec 2008 07:29:36 GMT

    [ https://issues.apache.org/struts/browse/WW-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45264#action_45264
] 

jflefebvre edited comment on WW-2918 at 12/15/08 11:28 PM:
---------------------------------------------------------

The same example with Struts 2.1.2 works fine (XWork xwork-2.1.1.jar)

The same example with Struts 2.0.14 + xwork-2.0.5.jar (not xwork-2.0.7.jar) work fine

      was (Author: jflefebvre):
    The same example with Struts 2.1.2 works fine (XWork xwork-2.1.1.jar)

The same example with Struts 2.0.14 + xwork-2.0.6.jar (not xwork-2.0.7.jar) work fine
  
> Struts don't use the locale
> ---------------------------
>
>                 Key: WW-2918
>                 URL: https://issues.apache.org/struts/browse/WW-2918
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.14
>         Environment: Windows, fr
>            Reporter: lefebvre
>            Priority: Critical
>         Attachments: testLocale.war, testLocaleStruts2.1.2OK.war
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message