You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2006/12/01 06:17:57 UTC

[jira] Updated: (STR-2897) Rework Locale Resolution

     [ http://issues.apache.org/struts/browse/STR-2897?page=all ]

Paul Benedict updated STR-2897:
-------------------------------

    Attachment: str-2897-patch-2.txt

Attached is take 2 on the locale resolution. Here are the talking points:

* Deleted the ActionLocaleContextHolder class and family.

* Moved resolver packages up to "org.apache.struts.locale" and deleted the "resolver" subpackage.

* Shortened interface name to LocaleResolver. It was originally called ActionLocaleResolver so that it could play nicely with Spring's own LocaleResolver, but the name is just too long and FQN will have to do if they want to use each other.

* The "localeResolverClass" property of the Controller now can accept shorthand mnemonics like "cookie", "session", etc. See LocaleUtils for more information.

* Controller also has a new property "defaultLocale" which allows the specified resolver to be given default fallback locale if the resolver cannot determine the locale by its own strategy.

* New RequestParameterLocaleResolver class to resolve the locale temporarily by a request parameter.

* New CompositeLocaleResolver to chain strategies together.

* New StandardLocaleResolver as the default resolution strategy if none specified.

* JSTL automatic fallback is removed. It is now it's own resolver (JstlLocaleResolver) to give developers the freedom to employ it (or not).

> Rework Locale Resolution
> ------------------------
>
>                 Key: STR-2897
>                 URL: http://issues.apache.org/struts/browse/STR-2897
>             Project: Struts 1
>          Issue Type: Improvement
>          Components: Core, Taglibs
>    Affects Versions: 1.3.5
>            Reporter: Ted Husted
>         Assigned To: Paul Benedict
>             Fix For: 1.3.7
>
>         Attachments: str-2897-patch-2.txt, str-2897-patch.txt
>
>
> Struts 1 locale resolution could be improvied to work more like Cantoo [http://messages.cintoo.org/] and Struts 2. 
> Ideally, we should be able to share locale resolution between s1, s2, and Spring, in the same application. 
> For background see, 
>  WW/SAF2 i18n & Cintoo Messages 
> * http://www.mail-archive.com/dev%40struts.apache.org/msg23270.html 
> Locale resolver 
> * http://www.mail-archive.com/dev%40struts.apache.org/msg23273.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira