Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@www.apache.org Received: (qmail 61373 invoked from network); 14 Sep 2004 14:29:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Sep 2004 14:29:42 -0000 Received: (qmail 109 invoked by uid 500); 14 Sep 2004 14:29:36 -0000 Delivered-To: apmail-jakarta-taglibs-user-archive@jakarta.apache.org Received: (qmail 99937 invoked by uid 500); 14 Sep 2004 14:29:35 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tag Libraries Users List" Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 99920 invoked by uid 99); 14 Sep 2004 14:29:34 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jak-taglibs-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO main.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 14 Sep 2004 07:29:34 -0700 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1C7EJH-0004ds-00 for ; Tue, 14 Sep 2004 16:29:31 +0200 Received: from 209.101.199.82 ([209.101.199.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Sep 2004 16:29:30 +0200 Received: from billsigg by 209.101.199.82 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Sep 2004 16:29:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: taglibs-user@jakarta.apache.org From: Bill Siggelkow Subject: Re: Using a localized pattern with fmt:formatNumber Date: Tue, 14 Sep 2004 10:29:28 -0400 Lines: 44 Message-ID: References: <5.1.0.14.2.20040914100028.022147a0@mail.atg.com.uy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 209.101.199.82 User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en In-Reply-To: <5.1.0.14.2.20040914100028.022147a0@mail.atg.com.uy> Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Helios -- you're pretty much right. My reason is basically academic; let me exlain -- The Struts bean:write tag applies the pattern as a localized pattern if the pattern is retrieved using the formatKey attribute. I was basically trying to find out if there was a way to emulate this behavior in JSTL. In actuality, the Struts approach yields a bug (27636) in that if the pattern is not defined in the resource bundle than the pattern specified in the default bundle may very well Helios Alonso wrote: > Maybe you have to explain why you need to localize your pattern. I > mean, can't you use a non-localized pattern even if you have one for > each locale? > > At 16:50 13/09/2004 -0400, you wrote: > >> Is it possible to apply a localized pattern when using the >> fmt:formatNumber tag? >> >> In other words, I would like the following to work correctly if my >> locale is some European locale like Russian: >> >> Say,I have a Double with a value of "12345.34" >> >> >> >> This does not apply the pattern as a localized pattern ... it does >> work correctly if the pattern is *not* localized as in: >> >> >> >> The reason I am asking is that the Struts bean:write tag supports >> pulling the format String from a resource bundle; but the value is >> treated as a localized pattern. I am trying to get equivalent behavior >> with the fmt:formatNumber tag. >> >> Let me know if I have not explained this adequately :) >> >> - Bill Siggelkow >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: taglibs-user-help@jakarta.apache.org