If the server you are running on is in Denmark, then it's likely that the server's default Locale is in fact Danish instead of English. Therefore, when the user attempts to use a Locale you don't have a bundle for, it will fall back to the Danish version of your resources. If you really want English to be the default, you'll need to make sure that English is the default locale for your app server.
Craig On Thu, 6 Jan 2005 10:15:06 +0100, Tommy Holm - TELMORE <[EMAIL PROTECTED]> wrote: > Hi everybody. > I have a problem with the bean:write tag. I have a jsp page with the > following text <bean:write name="websmsForm" property="smsMessagesPrice" > bundle="FormatResources" formatKey="currency.format" /> and I have > create two ressource bundles FormatResources.properties and > FormatResources_da.properties. The idea here is that there is a defualt > bundle that holds the currencyformat for the smsMessagesPrice property > and there is a specific danish version(the page is hosted in Denmark). > Everything works as expected in the following conditions. 1.) The user > has a browser with the language set to english. 2.) The user has a > browser with no language preference. 3.) The user has a browser with the > danish language set. > THE PROBLEM. > If a user has a browser with dutch language set or any other language, > an error occurs. Error = Wrong format string: '#.##0,00 kr'.''. It seems > as if the tag finds a locale that it has no bundle for, then it tries to > use the danish format which is failing for dutch. > Why doesn't the tag just simply use the default english ? > Cheers > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]