You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "lefebvre (JIRA)" <ji...@apache.org> on 2008/12/15 13:06:36 UTC
[jira] Created: (WW-2918) Struts don't use the locale
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
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.
[jira] Updated: (WW-2918) Struts don't use the locale
Posted by "lefebvre (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
lefebvre updated WW-2918:
-------------------------
Attachment: testLocale.war
> 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
>
>
> 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.
[jira] Issue Comment Edited: (WW-2918) Struts don't use the locale
Posted by "lefebvre (JIRA)" <ji...@apache.org>.
[ 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:01 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.6.jar (not xwork-2.0.7.jar) work fine
was (Author: jflefebvre):
Struts 2.1.2 works 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.
[jira] Commented: (WW-2918) Struts don't use the locale
Posted by "James Holmes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45330#action_45330 ]
James Holmes commented on WW-2918:
----------------------------------
I don't know if there will be a 2.0.15. Right now all work is being concentrated on getting 2.1.3 released with the hope that it will go GA.
> 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
> Fix For: 2.1.2
>
> 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.
[jira] Issue Comment Edited: (WW-2918) Struts don't use the locale
Posted by "lefebvre (JIRA)" <ji...@apache.org>.
[ 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:32 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) works 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.5.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.
[jira] Updated: (WW-2918) Struts don't use the locale
Posted by "lefebvre (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
lefebvre updated WW-2918:
-------------------------
Attachment: testLocaleStruts2.1.2OK.war
Struts 2.1.2 works 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.
[jira] Commented: (WW-2918) Struts don't use the locale
Posted by "lefebvre (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45329#action_45329 ]
lefebvre commented on WW-2918:
------------------------------
Hi James, I can't install a beta version on production server, is it possible to fix this bug into the next release 2.0.15 ?
Thanks
> 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
> Fix For: 2.1.2
>
> 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.
[jira] Resolved: (WW-2918) Struts don't use the locale
Posted by "James Holmes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Holmes resolved WW-2918.
------------------------------
Resolution: Fixed
Fix Version/s: 2.1.2
Closing as the original reporter has tested with 2.1.2 and says the issue is fixed.
> 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
> Fix For: 2.1.2
>
> 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.
[jira] Issue Comment Edited: (WW-2918) Struts don't use the locale
Posted by "lefebvre (JIRA)" <ji...@apache.org>.
[ 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.