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/07/02 18:49:17 UTC
[jira] Commented: (STR-2897) Rework Locale Resolution
[ http://issues.apache.org/struts/browse/STR-2897?page=comments#action_37634 ]
Paul Benedict commented on STR-2897:
------------------------------------
Since Struts 2.0 uses Spring, my question to the 2.0 team is how much of Spring is Struts allowed to use?
If we want to "take it easy", then I recommend we use these classes:
http://static.springframework.org/spring/docs/1.2.x/api/org/springframework/web/servlet/i18n/AcceptHeaderLocaleResolver.html
http://static.springframework.org/spring/docs/1.2.x/api/org/springframework/web/servlet/i18n/CookieLocaleResolver.html
http://static.springframework.org/spring/docs/1.2.x/api/org/springframework/web/servlet/i18n/FixedLocaleResolver.html
http://static.springframework.org/spring/docs/1.2.x/api/org/springframework/web/servlet/i18n/SessionLocaleResolver.html
Let it be known, they set a key in the request like org.springframework.* . Does that matter to anyone it's not a Struts key?
I don't mind coming up with an interface that duplicates the base Spring LocaleResolver interface (2 methods), but I do believe we should look-up this interface with reflection so Spring subclasses can join in.
Paul
> Rework Locale Resolution
> ------------------------
>
> Key: STR-2897
> URL: http://issues.apache.org/struts/browse/STR-2897
> Project: Struts 1
> Type: Improvement
> Reporter: Ted Husted
> Fix For: TBD
>
> 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