You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Evgeny Gesin <ev...@yahoo.com> on 2004/05/24 19:37:29 UTC

Currencies in other Locale than selected Bundle

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