Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@www.apache.org Received: (qmail 4245 invoked from network); 4 Feb 2006 03:07:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Feb 2006 03:07:31 -0000 Received: (qmail 5320 invoked by uid 500); 4 Feb 2006 03:07:19 -0000 Delivered-To: apmail-jakarta-taglibs-user-archive@jakarta.apache.org Received: (qmail 5281 invoked by uid 500); 4 Feb 2006 03:07:19 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 5270 invoked by uid 99); 4 Feb 2006 03:07:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2006 19:07:19 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jak-taglibs-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2006 19:07:18 -0800 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F5DlC-0006bG-Le for taglibs-user@jakarta.apache.org; Sat, 04 Feb 2006 04:06:50 +0100 Received: from 203-97-49-130.dsl.clear.net.nz ([203.97.49.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Feb 2006 04:06:50 +0100 Received: from sounie by 203-97-49-130.dsl.clear.net.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Feb 2006 04:06:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: taglibs-user@jakarta.apache.org From: Stephen Souness Subject: Re: fmt:formatNumber not formatting on first page load Date: Sat, 04 Feb 2006 16:11:54 +1300 Lines: 97 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 203-97-49-130.dsl.clear.net.nz User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en In-Reply-To: Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Looks like I posted too soon. Re-starting Tomcat on the Linux server, and then reloading the page containing the JSTL produces our old friend the conspicuously non-formatted number. Here's a snippet from my server.xml, in case anyone can find a glaring issue to explain what I have been observing: Other aspects of my application: - Using Tomcat's built-in security (hence JDBC Realm defined above) - Using Struts 1.2.8 - Using Tiles -- Stephen Stephen Souness wrote: > Windows XP Professional is the OS that this app has encountered this > issue on. > > We'll be deploying it to a Linux box when it goes live, and my tests > today indicate that everything goes fine first time under Linux (for > that particular aspect at least - let's not tempt Murphy to invoke the > law). > > > -- > Stephen > > > > Rahul Akolkar wrote: > >> On 2/2/06, Stephen Souness wrote: >> >>> More info: >>> >>> - the value is a string along the lines of : >>> 165000.0 >>> >>> So what I would expect to happen is: >>> - the decimal point and fractional 0 to be truncated >>> - a '$' symbol to be pre-pended >>> - a ',' between the '5' and the first '0' indicating thousands >>> >>> Each time Tomcat is restarted, the first load of the page shows: >>> >>> 165000.0 >>> >>> subsequent page loads give the correct: >>> >>> $165,000 >>> >> >> >> >> On Tomcat 5.0.28, JDK 1.4.2, JSTL 1.1, this JSP: >> >> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> >> > currencySymbol="$" maxFractionDigits="0" /> >> >> give me this output: >> >> $165,000 >> >> The first time, and every time beyond that. There's something else >> going on in your setup. I can't say based on the information we have. >> >> -Rahul >> >> >> >>> -- >>> Stephen >>> >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: taglibs-user-help@jakarta.apache.org