This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "internationalization" Watch "internationalization" New topic
Author

internationalization

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.


42
 
Consider Paul's rocket mass heater.
 
subject: internationalization
 
Similar Threads
Tomcat Startup
Apache Axis Exception
setting up Tomcat
Tomcat Help!
Acccess denied