Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I disable localization on currency?

Status
Not open for further replies.

afokenr

Programmer
Aug 31, 2004
1
CA
I've been having a devil of a time trying to disable the localization in a Struts/Ejb application. I'm using bean:write tags that take currency format strings from a resource bundle. For some reason, Struts tries to convert the formatting to a locale appropriate form (i.e. using commas instead of decimals for French users). But this only happens when I explicitly set the format in the tag (format=). If I try to refer to a key in my resource file (formatKey=), I get:

javax.servlet.jsp.JspException: Wrong format string: '$###,###,##0.00'

I don't need localization at this time, but when I do, I'd like to continue to use en-us formatting for currency. How do I turn it off, and when I'm ready to re-enable it, how do I stop the JspException from occurring?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top