File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes internationalization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "internationalization" Watch "internationalization" New topic


satish pune
Ranch Hand

Joined: Sep 04, 2003
Posts: 44
In a previous project the manner in which we were handling i18n was the url entered by user would have the locale data

http://localhost:8080/i18n/showList?ln=en_US for US english

http://localhost:8080/i18n/showList?ln=fr_FR for French

The question - can we trap locale data without passing data in the querystring ?
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
theoretically yes. Practically no.
The preferred locale from the browser is passed in the HTTP request but many people never set this up so the locale their browser passes to the server may well not be the one they want to use and they'll likely not know how to change it.

I agree. Here's the link:
subject: internationalization
jQuery in Action, 3rd edition