Bug 7983

Summary: <fmt:formatNumber type="currency"> problem
Product: Taglibs Reporter: Sean Rohead <srohead>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED WORKSFORME    
Severity: major    
Priority: P3    
Version: EA1   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Sean Rohead 2002-04-11 20:34:37 UTC
I have specified the locale as en_US (both with 
javax.servlet.jsp.jstl.fmt.locale property and with <fmt:locale> tag, neither 
makes a difference), but currencies format with a ¤ character rather than a $.

// THIS CODE DOES NOT WORK -- PRINTS ¤300.00
<fmt:locale value="en_US"/>
<fmt:formatNumber value="300" type="currency" />

// THIS CODE WORKS -- PRINTS $300.00
<% java.text.Format format = java.text.NumberFormat.getCurrencyInstance
(java.util.Locale.US); %>
<%= format.format(new Integer(300)) %>