Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 96994 invoked from network); 2 Mar 2007 22:42:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2007 22:42:58 -0000 Received: (qmail 14474 invoked by uid 500); 2 Mar 2007 22:43:04 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 14429 invoked by uid 500); 2 Mar 2007 22:43:03 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 14415 invoked by uid 99); 2 Mar 2007 22:43:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 14:43:03 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of paulus.benedictus@gmail.com designates 64.233.162.238 as permitted sender) Received: from [64.233.162.238] (HELO nz-out-0506.google.com) (64.233.162.238) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 14:42:51 -0800 Received: by nz-out-0506.google.com with SMTP id i11so932234nzi for ; Fri, 02 Mar 2007 14:42:30 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=WA02TcwKIlBOIbfYcgo/vPaZnmfHjzrC+KWZCht5crEqPgoAgOhL/BRrL0/YiCLZsY/ZiM06DHHmzoXDqwzAHaAJuaVV7uNw57JOG7NxdnSYqtV2LDk2ffY/cbPKFobl0MC4E0bHZk4LwlHPrtA8cPwgtK7ZmXwWD1tgnqycgGA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=Y93RdPrOsfIPdMj+V8Bq/cXDK6CtkjUXh7EZycJevZU9VXzMDXFc1qZJB1DwCs5Kj9kXwqhhjqFC4XzIb2tC47rCJxGgg/PEKikZ4d0VC63L/Srlmw9DIBBnoVYpKIFIoV+n2KztAAX2T9y+xLZU3nt0Qt8WOAJ4Ds6zgyz52XE= Received: by 10.35.21.1 with SMTP id y1mr6975088pyi.1172875350271; Fri, 02 Mar 2007 14:42:30 -0800 (PST) Received: from ?192.168.11.2? ( [65.30.71.168]) by mx.google.com with ESMTP id 23sm4559248nzn.2007.03.02.14.42.29; Fri, 02 Mar 2007 14:42:30 -0800 (PST) Message-ID: <45E8A860.3020008@apache.org> Date: Fri, 02 Mar 2007 16:42:40 -0600 From: Paul Benedict Reply-To: pbenedict@apache.org User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Struts Developers List Subject: Re: Struts 1.4 & 2.1 sharing localization code References: <45DD0E32.5080905@apache.org> <436d9a250702212110m2af63e4ak7c264a81f87d3701@mail.gmail.com> <45DD26B1.8050306@apache.org> <436d9a250702212303g389a2e60o28bf81f8f6be120b@mail.gmail.com> <55afdc850703011616v481ec95fu4370fb752a360ac6@mail.gmail.com> <55afdc850703020759o4b81d752qd6b27c5b57ed6f08@mail.gmail.com> In-Reply-To: <55afdc850703020759o4b81d752qd6b27c5b57ed6f08@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: Paul Benedict X-Virus-Checked: Checked by ClamAV on apache.org The standalone library would be resolver strategies, but S1 and S2 would need their own adapter. For S1, the adapter is the SelectLocale command, which exposes it for Action.getLocale(). Since I've been busy getting the next 1.3 GA out the door, I haven't had time to look at this 1.4 feature again. But I will within this month. Paul Niall Pemberton wrote: > I took a quick look at XWork - they already have a "LocaleProvider" > interface which defines a single getLocale() method: > > http://tinyurl.com/yqmlv3 > > Paul's solution (based on some Spring classes) is tied to the webapp > context with his equivalent "LocaleResolver" interface defining two > methods: > > Locale resolveLocale(HttpServletRequest request); > void setLocale(HttpServletRequest request, HttpServletResponse response, > Locale locale); > > Niall > > On 3/2/07, Antonio Petrelli wrote: >> 2007/3/2, Niall Pemberton : >> > If you wanted to start something - any Apache committer can have >> > access to the Commons Sandbox - I think you just have to ask. >> >> Something like "commons-locale"? >> I feel that Tiles won't use commons-resources current code, but only >> the new locale resolution code, so from my POV it is the same to wake >> commons-resources up or create a new sandbox project. >> In the latter case, anyway, I will let Paul make the proposal, since >> it is his idea, I won't steal his fun :-) >> >> Antonio >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org >> For additional commands, e-mail: dev-help@struts.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org > For additional commands, e-mail: dev-help@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org