JSTL: 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 selected Bundle.
Evgeny
Javadesk

Opps, I think I found the answer
<fmt:setLocale value="<%= locale1 %>" />
<fmt:bundle basename="bundle">
<P><fmt:formatNumber value="<%= new Double(line.getTotal()) %>" type="currency" /></P>
</fmt:bundle>
<fmt:setLocale value="<%= locale2 %>" />
<fmt:bundle basename="bundle">
<P><fmt:formatNumber value="<%= new Double(line.getTotal()) %>" type="currency" /></P>
</fmt:bundle>

Similar Messages

  • Apple Online store ship to other country than selected.

    Hey everyone, I know the title is confusing. Basically, I study in the UK, and Apple has an agreement with my Uni, so I can get a student discount when I buy a new Mac. I am currently not in the UK however, but would like to purchase a Mac Pro in a couple of months (with student discount) and have it ship to my current location. Is this possible?
    Thanks a lot in advance

    Thanks for your fast reply, looks like I'll have to wait with my order until I get back to the UK (next September ), as I'm currently on a year abroad.

  • Questioning currency symbol LEI rather than RON for ro_RO locale (Romania)

    Using java jdk 1.6.0_16 to compile my code in Eclipse. I have code that handles the display of currency values using Locale class in java. When using language = "ro" and country = "RO" for Romania, the currency symbol is LEI when I believe it should be RON, at least that is what a client in Romania is telling me.
    Any suggestions on what I could possibly do to make RON the currency symbol or explain to the client why LEI is being used?
    Edited by: ooper on Nov 18, 2009 2:41 PM

    It's always nice to have sample code which displays the problem. So is this code okay?
    Locale ro = new Locale("ro", "RO");
    NumberFormat nf = NumberFormat.getCurrencyInstance(ro);
    System.out.println(nf.format(13000));So when I compile that as Java 6 and run it under a Sun Java 6 JRE, I get this output at the console:
    13.000,00 LEIBut when I compile it as Java 5 and run it under an IBM Java 5 JRE, I get this:
    13.000,00 RONI don't have a Sun Java 5 JRE to test with. However when I use this code:
    Locale ro = new Locale("ro", "RO");
    Currency c = Currency.getInstance(ro);
    System.out.println(c.getSymbol());
    System.out.println(c.getSymbol(ro));then under the Sun Java 6 JRE I get this:
    RON
    LEIand under the IBM Java 5 JRE I get this:
    RON
    RONYes, I agree with your informant that "LEI" is obsolete and "RON" is the correct abbreviation for the currency today, and I have no explanation for why Sun has things coded that way, but perhaps that helps you with a workaround?

  • Using ios 7.0.4 can a group email be sent either from icloud or iPhone by a means other than selecting the individual Contact, ie; can the group be selected and then an email composed that will send the message to all group members.

    Using ios 7.0.4 can a group email be sent either from icloud or iPhone by a means other than selecting the individual Contact, ie; can the group be selected and then an email composed that will send the message to all group members.

    Hi Richard, 
    Thanks for the reply - I think I've sorted it though and there isn't actually an issue.
    The whole group wasn't receiving the NDR, only the group manager which I setup a few weeks prior. This is a new feature so it complies with certain RFC's, basically the group manager will recieive the NDR to let them know there is a problem.
    Something to do with mass mailing and unsolicited mail.
    Ta
    Ian

  • Currency  IDR  becomes greater than the maximum price

    Dear All
    We have error message (no 06217), when create PO, like bellow :
    =================
    Net price in IDR becomes too large
    Message no. 06217
    Diagnosis
    The calculated net price in currency IDR becomes greater than the maximum price ("99999999999") defined in the system.
    Procedure
    Make sure your entries are correct.
    Check the following:
    The exchange rate, if the currency differs from the local currency;
    The conversion order unit --> order price unit.
    ==================
    Would you like help me please
    thanks
    imron

    Hello,
    The PO value in IDR currency is larger than the maximum length the SAP field and hence the error message. Either your order currency or your company code currency must be IDR in the PO and the total order value is exceeding the technical field length limitation in SAP.
    The best way ahead would be to break down the PO line into different purchase orders.
    Regards
    Greg

  • How can I create a filter that automatically copies sent items to other folder than "sent" folder?

    I tried to create filter which automatically copies sent to different recipients messages to other folder than "sent". I tried many times with different setting but it doesn't work. With inbox messages it works fine.
    Thank you

    If you want to 'reply' to an email, but you want the sent reply to auto appear in the same folder of the message you are replying to.
    Tools > Account Settings > Copies & folders for the mail account
    There is a checkbox to select: 'Place replies on the folder of the message being replied to'
    then click on OK to save changes.
    If you want all sent emails not just replies to got to different fodlers based on who you sent the email to, then you would need to create a filter which when manually run moves selected emails to specific folders.
    So let the sent emails get auto stored in Sent folder.
    Tools > Message Filter
    click on New
    give filter suitable name
    Apply filter when: manually run
    select 'match all of the following'
    To is email address
    Perform these actions
    Move message to and select the folder.
    Do not enable.
    When you need to run this filter,
    open Message filter.
    enable only the filters you require
    Run selected filters on: Sent folder on the mail account
    click on 'run now'
    Best used when you have several sent emails which you need moving.
    Not exactly what you are looking for, but works if organising loads of sent emails.

  • How to Add a parameter of currency exchange rate in the selection screen

    Dear Friends,
    How to Add a parameter of currency exchange rate in the selection screen with format (9999.99999). wich field i need to take.
    Thanks,
    Sridhar

    TCURR-UKURS.
    ~Suresh

  • Payment of foreign currency invoice in local currency

    Hi all,
    PO is created in USD and thereafter GR and IR done.  The payment of this invoice has to be done in
    local currency RUB.  In invoice the currency field is not open for change and hence payment in
    local currency cannot be generated.   How to make payment of USD invoice in RUB ?
    Thanks in advance.
    Regards,
    Sadashivan

    Dear Experts,
    We have a strange case, and requesting the SAP behaviour for this case.
    The document (Invoice posted) in "SDR" special Dinar Rate (not standard currency), and the Local Currency is BHD - Bahraini Dinar, and wanted to pay in Foreign Currency in "EUR". mainted the payment currency in the document.
    As far as I know system will check exchange rates for conversion from SDR - BHD and then BHD - EUR, so maintaining these two combinations are enough.
    But strangely I am getting error while processing F110 automatic payment program, system is giving error "Enter the Rate EUR/SDR rate type M for 04.08.2010 in the system". Message No. SG - 105
    I am facing this error after we upgraded to ECC 6.0 from ERP 4.7 in March 2010.  Paying in EUR is rarely happens.
    Awaiting your kind reply.
    Regards,
    Francis

  • [svn:fx-4.0.0] 13615: fix airframework/build. xml so the en_US _rb does not become corrupt when the other. locales target is run.

    Revision: 13615
    Revision: 13615
    Author:   [email protected]
    Date:     2010-01-18 20:59:14 -0800 (Mon, 18 Jan 2010)
    Log Message:
    fix airframework/build.xml so the en_US _rb does not become corrupt when the other.locales target is run.
    -removed the redundant en_US call in the other.locales target
    -added a clean for locales that will only remove the locale being built before rebuild - not all of the locales
    -add updated dita that does not contain spark references
    QE notes: 
    Doc notes:
    Bugs: no but Pete and I discussed briefly
    Reviewer:
    Tests run: doc and other.locales
    Is noteworthy for integration:
    Modified Paths:
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/build.xml
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/de_DE/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/fr_FR/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/ru_RU/docs/packages.dita
        flex/sdk/branches/4.0.0/frameworks/projects/airframework/bundles/zh_CN/docs/packages.dita

    What kind of projects are they (Struts/JSF/Hibernate)? Does the working project differ in any way with other two apps?
    What exactly is not working? Are they recognized by workshop as Struts/JSF/Hibernate app?
    Please send the .log to [email protected]

  • ERROR: Select Currency/UoM field for the selected analyzed fields

    Hi all
    I am currently creating Business Rules in GRC PC 10.0 for the Automated Monitoring Framework.
    After completing the Basic Information page, I click [Next] and get to the Data for Analysis page.
    If ever I select any field that contains a value for Currency or Unit of Measure, I receive the following error and cannot proceed with creating the Business Rule:
    Select Currency/UoM field for the selected analyzed fields
    Does anyone have any information/SAP Notes/documentation on what this error is and how to solve it?
    Any help will be gratefully accepted.
    Kind regards
    Gregory Huddle

    http://service.sap.com/sap/support/notes/1904313

  • Can't drag the currency key in local currency to the pool of fields not use

    Hi everyone,
    Hopefully you can enlighten me with this issue coz im trying to drag the currency key in local currency to the pool of fields not used (UCWB<Data Model<Data Basis<Data Model(TAB)) but nothing happened, i can't transfer it to the pool of fields not used.
    Note:I came with this decision(transferring the currency key in local currency to the pool of fields not used ) because SAP prompt me with this:
    The currency key in local currency is not required in the data basis. It is merely an implicit part of the data model
    I really dont have any idea why i can't drag it to the pool of filed not used, i tried to look for some sap notes but i can't find one.
    thanks in advance

    Hi Dan,
    Actually it is not really an error, i just would like to pattern the configuration of our newly upgraded BI server  to our BW server.
    In our BW server, the currency key in local currency is mapped to the pool of fields not used. I can't seem to do the same in the BI server because everytime I try to drag the currency key in local currency to the pool of fields not used, nothing happens, it isn't mapped.

  • Backup W700 RAID0 to an other local HD

    Hello Lenovo user's,
    Happy new year to all of you.
    Voila, I need to backup my entire local drive (c Raid0 (2x320GB) to an other hard drive in my other local hard drive in Ultrabay tray. (320gb).
    Total average data 50GB for the backup.
    I need the step by step best practice procedure (include bootable mem stick, software, ETC). Please, help me, that procedure was rock solid, backup and restore !!!!
    Note, I use Win7 x64 clean install W/O Lenovo feature.
    Thank all friends.
    Special greeting to Mark Hopping
    Best regards
    First T22,Next T43,T60P, W700 and S10-3, now W540 (SSD, 16RAM, i7 4800, Etc :-)

    What format is the external drive?
    If you want to backup your iPhoto library (strongly recommended) then you must have a drive or a disk image formatted Mac OS extended (journaled)
    If the drive is a format that is supported by the Mac OS for read and write then you can backup your photos by exporting to a folder on the esternal hard drive or exporting to a folder on your desktop and dragging that folder to the external hard drive
    Without the details that you do not provide it is impossible to assist other than to tell you the correct way to do things
    LN

  • Currency Translation from local to group currency in AP /AR

    Hi Gurus,
             I have reporting requiremtents where in i need to show KF;s in local and group currency. I am using standard extractor AP_4 and AR_4. These extractors does not bring KF's in Group currency but only in local and document currency.
    Can anyone tell me what is the best way to go about carrying out the currency translation from local to glocal currency for AP and AR.
    Thanks in advance and yeah points guranteed for helpful answers...
    Cheers..
    Sam

    I take it you mean the extra currency in the company code config (ie group reporting)
    Just unhide the fields DMBE2 and HWAE2 from the extract structure and allocate a new infoobject to them - then add to eith your transformation or transfer rules/update rules and add to the cube

  • Firefox loads other pages than expected

    From time to time firefox loads other pages than expected.
    Is it firefox, google :D or do i have a virus:D?

    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache
    Press the '''<Alt>''' or '''<F10>''' key to bring up the tool bar.
    Followed by;
    Windows; '''Tools > Options'''
    Linux; '''Edit > Preferences'''
    Mac; ''application name'' '''> Preferences'''
    Then '''Advanced > Network > Cached Web Content: Clear Now'''
    and
    * Remove Cookies
    Press the '''<Alt>''' or '''<F10>''' key to bring up the tool bar.
    Followed by;
    Windows; '''Tools > Options'''
    Linux; '''Edit > Preferences'''
    Mac; ''application name'' '''> Preferences'''
    Then '''Privacy.'''
    Under '''History''', select Firefox will '''Use Custom Settings'''.
    There is a button on the right side called '''Show Cookies'''.
    If there is still a problem,
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''''' {web link}
    While you are in safe mode;
    Press the '''<Alt>''' or '''<F10>''' key to bring up the tool bar.
    Followed by;
    Windows; '''Tools > Options'''
    Linux; '''Edit > Preferences'''
    Mac; ''application name'' '''> Preferences'''
    Then '''Advanced > General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites and see if there is still a problem. Then restart.

  • My problem is very simple......firefox wont allow me save my downloads to any other location than my c drive....for example i have gone into options and set sav

    ''locking this thread as duplicate, please continue at [https://support.mozilla.org/en-US/questions/986549 /questions/986549]''
    my problem is very simple......firefox wont allow me save my downloads to any other location than my c drive....for example i have gone into options and set save downloads to my e drive....but still firefox keeps saving them to my c drive....i have 4 internal hard drives in my rig....and have tried saving downloads to them all.......why this is happening i cant understand....i have tried lots of suggestions....and have re-installed firefox multiple times

    hello, there's a general regression in firefox 27 that won't allow files to download directly into a root drive. please try to create a subfolder (like ''E:\Downloads'') and set this as default location for downloads...
    also see [https://bugzilla.mozilla.org/show_bug.cgi?id=958899 bug #958899].

Maybe you are looking for

  • Problem with Form and webutil loading jar and connection

    Can anyone shed light on this. Here is my java console output. I then get FRM-90250 and FRM-92101.... Orion-web.xml <virtual-directory virtual-path="/webutil" real-path="C:\webutil/lib" /> Forms90.conf #Virtual path for WebUtil AliasMatch ^/forms90/w

  • Outlook 2013 - MS Outlook has stopped working... (sending Email)

    Hi everyone, this one is extremely frustrating and hoping you can help. My colleague has Outlook 2013 running on Win7 Pro. There are two different mail account, both Exchange server. Everything works fine except Sending mail. Every time we attempt to

  • I can't type my password onto my ipad?  any help please

    Help I can't get my iPad to put my password in.   I can turn it on, and swipe but the password will not type.   Any ideas?   Please

  • NDM nearestNeighbors method with GoalNode filter

    Hello everyone, I'm trying to use the NetworkManager.nearestNeighbours method of the NDM Java API to find the path to the nearest node of a certain type. I am using the PARTITION_ID field to categorize the nodes, and the goal nodes I have in mind are

  • Adobe Reader 11 DDE not AcroViewR10 but AcroViewR11

    Adobe Reader 11をインストールすると.どういうわけか レジストリ HKCR\acrobat\shell\open\ddeexec\application\ の文字列は."AcroViewR10"になります. DDEでAdobe Reader 11に接続するには. DDEInitiate "AcroViewR11","Control" などとしなければなりませんが.上記レジストリの情報を信じるとつながりませんので注意しましょう. 将来この辺りをAdobeが修正してくれるとありがたいで