tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evgeny Gesin <evgenyge...@yahoo.com>
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>

</fmt:bundle>

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.

Evgeny
Javadesk


	
		
__________________________________
Do you Yahoo!?
Yahoo! Domains  Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer 

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message