tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evgeny Gesin <>
Subject Currencies in other Locale than selected Bundle
Date Mon, 24 May 2004 17:37:29 GMT
The user can select a language on web site. Selected
locale is stored in the user session and used to read
text from corresponded resource bundle. Currency is
diplayed as follows

<jsp:useBean id="locale" scope="session"    
class="java.util.Locale" />
<fmt:setLocale value="<%= locale %>" />
<fmt:bundle basename="bundle">

<P><fmt:formatNumber value="<%= new
Double(line.getTotal()) %>" type="currency" /></P>


I need to display content of a site in Russian, but
product prices in Israeli Shequels, not in Russian
Rubels (as the code above does). Could you post a code
sample how to display currencies in other locale than
the rest of content.


Do you Yahoo!?
Yahoo! Domains  Claim yours for only $14.70/year 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message