Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 51582 invoked from network); 11 May 2007 08:12:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 May 2007 08:12:46 -0000 Received: (qmail 53358 invoked by uid 500); 11 May 2007 08:12:37 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 53331 invoked by uid 500); 11 May 2007 08:12:37 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 53316 invoked by uid 99); 11 May 2007 08:12:37 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2007 01:12:37 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [212.97.200.24] (HELO dkd00459L.tsden.tcad.telia.se) (212.97.200.24) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2007 01:12:25 -0700 Received: from [127.0.0.1] (localhost [127.0.0.1]) by dkd00459L.tsden.tcad.telia.se (Postfix) with ESMTP id 3B75850CD7 for ; Fri, 11 May 2007 10:11:44 +0200 (CEST) Message-ID: <46442503.2050306@luniks.net> Date: Fri, 11 May 2007 10:10:43 +0200 From: =?ISO-8859-1?Q?Torsten_R=F6mer?= User-Agent: Thunderbird 1.5.0.2 (X11/20060411) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Preparable interface & getLocale() X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I noticed that when calling getLocale() from prepare(), it seems to return the system default locale instead of the locale set by the request_locale request parameter, which is the case when calling it from execute(). Is that supposed to be like that or could this be a bug? I think the correct locale is needed also in prepare() in order to populate controls with internationalized content. As a workaround I get the locale directly from the request_locale parameter. Torsten --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org