cancel
Showing results for 
Search instead for 
Did you mean: 

Internationalization:read, change and set Locale of Browser (IE) whith Java

Former Member
0 Kudos

Hi!

I´m working in NWDI whith Java and need read the Locale of Internet Explorer and depending on this, assign the correct currency exchange to all table cells money. (price per product, total price, total).

For example

Locale on Internet Explorer = U.S. -> 13.45 USD

Locale on Internet Explorer = Spain -> 18.22 EUR

Locale on Internet Explorer = Mexico -> 35.70 MXN

I hope you can help me.

I appreciate your support in advance

Edited by: Luis Octavio Rivera Valderrama on Jan 13, 2009 11:16 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

when you have got access to the HttpServletRequest you can do the following:

request.getLocale();

Next you should check the class java.text.NumberFormat.

Anyway I think you should post such kinds of question in a Java Newsgroup or forum.

Regards

Michael

Edited by: Michael Meyer on Jan 16, 2009 12:02 PM