Fmt:message not using the correct locale

Hello,
I have a webapp which uses struts and jstl. I use the following code snipped to display localized strings
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el"%>
<fmt:message key="label.help"/>
My resource file is specified in struts-config.xml as follows:
<message-resources parameter="com.ibm.psdui.resources.PSDText"/>
I currently have the base file PSDText.properties and a German version PSDText.properties_de.
If I have the language setting in my browser to de, I see the German strings. However if I set the languages to en-us followed by German, I still see the German strings. It seems like fmt:message is using the wrong locale. Just out of curiosity I replaced fmt:message to bean:message and I see the right localized strings. I have to use fmt:message. Am I missing some configuration setting or something?
Thanks in advance,
Kumar

BTW... fmt doesn't support Struts, that I'm aware of... it's a JSTL tag library. So it probably does what I said because I'm not sure that java.util.ResourceBundle will load the default bundle for it... or maybe it does (I forget) but it could be just looking for properties files on it's own. So I don't think that setting message-resources in the Struts config file is going to make a difference if you aren't using the bean taglib.

Similar Messages

  • I have a jetpack, and when I try to "connect" to my ipad or phone, it keeps telling me I am not using the correct password.  I have tried everything.  I even changed the password, nothing is working.  Both are 4G, my ipad is an Air and my phone is a Iphon

    I have a jetpack, and when I try to "connect" to my ipad or phone, it keeps telling me I am not using the correct password.  I have tried everything.  I even changed the password, nothing is working.  Both are 4G, my ipad is an Air and my phone is a Iphone 5.  I can get connected to other wifi on these features but not with my jetpack.  Please help, I need to use this feature soon.  Thank you so much

    Chances are you mis-typed a character in the Wifi password and the devices saved that information.  Now whenever you try to connect the device refers to the wrong password and the Jetpack does not accept your connection.  Tell your devices to forget the wireless connection and start over.
    Once you enter the proper WiFi credentials the Jetpack will allow you to connect.

  • 'You Are Not Using The Correct Type of Phone Cord' Error

    Having a issue with my fax on my HP Officejet Pro 8500 wireless.  Tried to send a fax, it  received a send error.  I ran fax test and it came back with "You are not using the correct type of phone cord".  Nothing has changed since I last fax'd but I check the lines and connection, everything appears ok.  Phone jack is connected to 1-line and Officejet '2-ext' is connected to the phone.  I use a dedicated phone # and the Officejet is set to auto answer.   I can call out and receive calls on the phone connect to the Officejet.  My assumption is that since I can use the phone without issue there is nothing wrong with the phone line.  Any ideas?
    This question was solved.
    View Solution.

    I was having the same problem.  I'm using a the 2 wire phone cord provided with the printer and still getting this error.  Turns out that it related to have a phone extension plugged into the printer.  If I unplug the telephone form the extension jack on the back of the printer, then the fax test passes.   I was even using a 2 wire cord on the phone extension but it seems that simply having a telephone plugged into the extension jack will cause this error. 
    Run the test without a telephone plugged into the printer's extension jack and you should be fine.
    Worked for me!

  • Mail not using the correct account to reply to email

    I use Gmail to fetch email from my other email accounts. Prior to Mountain Lion, whenever I replied to an email, Mail would use the correct email account to reply to. That is to say, Gmail was fetching email from [email protected], for example. When I click reply, the default account would be mail.com. But since upgrading to Mountain Lion, the default account will be Gmail.com.
    Has anyone experienced this? How were you able to solve this, if at all?
    Thanks in advance for your responses.

    The new rule seems to be if you move an email message received on account A to a folder belonging to account B, that means the message now "belongs to" account B, and replies will come from account B. The new rule is murkier if you move a message from account A to an "On My Mac" folder and then reply to it.
    I'm not saying that I like it that way, or that Apple has documented the change, just that this "new rule" seems to explain many of the "wrong reply" and "copying myself" complaints we see here on the forums. If we (users) can figure out the second half of the "new rule" ("On My Mac" folders), we might be able to explain the rest, we might be able to predict how replies will work, and we might be able to write a cogent complaint about the "new rule."

  • BUG in IMS 5.2 P 1 on Windows 2000 : not using the correct DNS servers

    Hi everyone,
    I encountered a queer bug in Ims 5.2 on Windows 2000.
    Let me explain it to all of you to avoid spending time and money debugging this problem.
    The problem may occur on Windows 2000 Server if the server used was formerly configured to obtain its IP address from a DHCP server (before using it for mail purposes).
    Windows 2000 doesn't delete its DHCP client configuration even if the machine is re-configured with a static IP.
    It stores the information in an interface registry key under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
    If you install IMS52 after this, the server will use the DNS servers configured in the DHCP configuration rather than the ones specified in the static IP config to lookup the MXs.
    So if the nameservers configured in the DHCP config are not reachable, the smtp server will systematically fail sending outbond mails.
    To avoid this, locate the DHCP interface key in the Registry and remove it.
    Remarks :
    I know that this situation is not common but it may occur in certain occasions for people like me who are making demonstrations on clients sites.
    I'm not sure it is specifically related to DHCP rather than static config. I would say that IMS uses the first interface found in the registry (in alphabetical order) even if this interface is not active...
    A good idea is to remove completely from the registry all the interfaces keys not currently used by the system.
    Hope this will help some of you.
    Best regards,
    Vincent MAZARD
    DML FRANCE

    Interesting. Thank you for the observation. Not something I have seen, either.

  • Why Oracle not using the correct indexes after running table stats

    I created an index on the table and ran the a sql statement. I found that via the explain plan that index is being used and is cheaper which I wanted.
    Latter I ran all tables stats and found out again via explain plan that the same sql is now using different index and more costly plan. I don't know what is going on. Why this is happening. Any suggestions.
    Thx

    I just wanted to know the cost using the index.
    To gather histograms use (method_opt is the one that causes the package to collect histograms)
    DBMS_STATS.GATHER_SCHEMA_STATS (
    ownname => 'SCHEMA',
    estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,
    block_sample => TRUE,
    method_opt => 'FOR ALL COLUMNS SIZE AUTO',
    degree => 4,
    granularity => 'ALL',
    cascade => TRUE,
    options => 'GATHER'
    );

  • Calendar is not dispayng the correct locale

    Hello there, in one application written on Studio Creator 2 and migrated to Netbeans 5.5.1 I have the following issue, if I call a calendar with spanish locale it displays onky the header on spanish (Month), but the begining of the days ar show on other language ( which one i dont know), however is as it follows (U, t, b, t, n, S, S).
    It�s a litte bit wreird because in some other applications builded with the Visual Web Pack it does work as expected.
    the config that we are using for the locale is:
    <faces-config>
      <application>
        <locale-config>
          <default-locale>es</default-locale>
          <supported-locale>de</supported-locale>
          <supported-locale>fr</supported-locale>
          <supported-locale>en</supported-locale>
        </locale-config>
      </application>
    </faces-config>on the faces.config.xml of the main project
    Any Suggestion?

    You have to ensure that the wireless adapter is enabled on your machine.
    First, go to the network you inted to share over virtualrouter. Then, go to its properties, and enable sharing.
    After that, open the command prompt in elevated (admin) mode, and type in this command:
    netsh wlan set hostednetwork mode=allow
    After that, virtual router should work like a charm :)

  • "itunes could not restore the iphone because the password was incorrect" I know for a fact im using the correct password. and it has previously worked. is anyone else having this issue.

    "itunes could not restore the iphone because the password was incorrect" I know for a fact im using the correct password. and it has previously worked. is anyone else having this issue.

    Hi, I also get the message "itunes could not restore the iphone because the password was incorrect" though I am never prompted to enter a password anywhere! Nor was the backup password encrypted to begin with! Really strange, any pointers will be greatly appriciated!

  • I have a 2011 mini with usb connector when I attempt to connect my nano I get the message that I do not have the correct adapter cable. I got the correct adapter cable from the Mini dealer. Any suggestions?

    I cannot get my Mini Cooper to sync up with my nano thru the USB port. When I hook up with the cable that came with the Nano, it acknowledges that it is an Ipod however it displays the message that I do not have the correct cable.  When I use the audtio adapter cable from BMW it doesn't see the Nano at all. Has anyone else had the issue and what did you do to over come it  I tried my nano in another persons car (a Ford) and it worked with no issue.

    This can sometimes be the result of a faulty/damaaged USB sync cable.  Do you have another cable you could test it out with?
    B-rock

  • TS3988 My icloud account is not verifying it says check my mail witch I have done and I get a message say your iPhone for has been used to set up and Icloud account but still can not use the icloud can anybody help me.

    My icloud account is not verifying it says check my mail witch I have done and I get a message say your iPhone for has been used to set up and Icloud account but still can not use the icloud can anybody help me.

    Be sure you are checking the email account that you used to set up the Apple ID you used to create the iCloud account.  Also, be sure to check your spam/junk folder as well as your inbox.  The email you should receive looks like the image below.  When you get it, click the Verify Now link.
    If it still isn't there, try going to https://appleid.apple.com, click Manage your Apple ID, sign in, click on Name, ID and Email addresses on the left, then to the right look for a link to resend the verification email.

  • HT1212 i havnt changed my passcose and using the same passcode which i have been using since ages , its still not working, and i am 100 percent sure i am using the correct passcode ?

    i havnt changed my passcose and using the same passcode which i have been using since ages , its still not working, and i am 100 percent sure i am using the correct passcode ?.,

    Either way the result is the same... if you forgot (or don't know) your passcode, restore the device from backup on the last computer it was synced with when the passcode was turned on... this will remove the passcode. If you do not have access to the last computer it was synced with, you will have to force it into recovery mode & restore as a new device.

  • HT4352 I'm using the correct APPLE ID and password for Home Sharing on my computer but my AppleTv is not accepting it?  What's up with that???

    I'm using the correct APPLE ID and password for Home Sharing on my computer but my AppleTv is not accepting it?  What's up with that???

    I have the exact same issue. I also tried resetting my password. I can log in to iTunes on my laptop with the new password, on to my iPhone iTunes, but my Apple TV says it cannot recognize my password. I just did an Apple Tv software update a few days ago.
    I am able to log in to Netflix on my Apple TV just fine. I did not have to re-enter my password for that.
    Very frustrating. I hope Apple can figure this out soon and post a fix.
    Thanks for any advice.  Cheers.

  • When I try to use the Smart Brush I keep getting this message "Could not use the Smart Brush tool because it is not a valid Photoshop document"

    When I try to use the Smart Brush I keep getting this message "Could not use the Smart Brush tool because it is not a valid Photoshop document". Can someone please help me fix this? It's never done this before until now...

    First go to the editor preferences>general and click this button, then restart the editor and try again. If that doesn't do it, more info, like your version of PSE and your operating system:

  • HT204074 I have just changed my iPad mini password a day ago when trying to log on today it worked fine until about 4:30 (GMT) when I could not access the device using the correct password. I am absoloutley 100% sure it's correct. Any help?

    I have just changed my iPad mini password a day ago, and when trying to access it today it worked fine until about 4:30 (GMT) when I could not access the device using the correct password. I am absoloutley 100% sure it's correct.Additional details:I was last using Kik messenger before it stopped working.I was sitting less than two foot away from the PS3 my brother was playing.I'm 14 but I'm not some spoilt kid who gets iPhones and iPads from his parents to mess around with, I have got important coursework and homeworks on there.Any help would be great Thanks.

    Hello ConfusedLlama
    If the password is not working to get into your iPad mini, you would need to follow the steps to restore it. If you have a back up through iCloud or through iTunes, you can restore from that back up and it would not bring back the passcode unless it is encrypted.
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    Regards,
    -Norm G.

  • HT5225 "This disc does not use the GUID Partition Table Scheme...". I keep getting this message when I try to install OSXLion. It has something to do with a repair Apple performed last year. I use a 17" MacBookPro. Any suggestions?

    "This disc does not use the GUID Partition Table Scheme. Use Disc Utility to change the partition scheme". I keep getting this message when I try to install OSX Lion so that I can upgrade my 17" MacBookPro to move to iCloud. My harddrive was replaced last year by Apple because of a fault by the manufacturer and I think this is the cause of the problem. What can I do so that I don't lose my content.

    When you click the partion tab. There is option on the bottom of the window. Click on that there there are these options.

Maybe you are looking for