Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED.146.142.4.32!not-for-mail From: Tim Slattery Newsgroups: comp.lang.java.programmer Subject: Re: Where did my language setting go? Date: Mon, 01 Jul 2013 16:13:13 -0400 Organization: A noiseless patient Spider Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: mx05.eternal-september.org; posting-host="146.142.4.32"; logging-data="24207"; mail-complaints-to="abuse@eternal-september.org"; posting-account="SlatteryT" User-Agent: ForteAgent/7.10.32.1212 Xref: csiph.com comp.lang.java.programmer:24555 markspace wrote: >I'm kind of confused why it would do this. I don't really know about >Struts or even JEE every much, so I'm probably missing something, but >getLocale() on HttpServletRequest should return the locale requested by >the browser (client). Then you should just be able to do this: > >ResourceBundle labels = ResourceBundle.getBundle("ces", locale); You're probably right. I should check out just doing and see if would get the language suffix from the Locale that's been set. I don't think it's very likely that this app will get any more languages, but even so it would clean up the code a lot. -- Tim Slattery Slattery_T@bls.gov