[Opensource] i18n
addison at inter-locale.com
addison at inter-locale.com
Mon Jun 3 08:19:07 PDT 2002
Hi Jacq,
Different versions of servlet perform differently. Common implementations
of the servlet engine (such as that on the Sun website) have not yet been
updated and are not fully functional. This is due to i18n being an
afterthought in J2EE, not to any particular framework.
Most of versions of servlet return a null locale (the null locale is
like getting new Locale("","")). The null locale itself returns "en" as
its name. Struts avoids this limitation by using its own implementation.
Most developers end up having to parse the Accept-Language header
themselves, since you can't predict which servlet engine you'll find
yourself in...
I have such a demo myself, with source, at
http://www.inter-locale.com/demos/langnego.xtp
Hope that helps.
Best Regards,
Addison
===============================================================
Addison P. Phillips Globalization Architect
webMethods, Inc http://www.webmethods.com
Sunnyvale, CA, USA mailto:aphillips at webmethods.com
+1 408.210.3569 (mobile) +1 408.962.5487 (ofc)
===============================================================
"Internationalization is not a feature. It is an architecture."
On Thu, 30 May 2002, Jacques Grid wrote:
> I am trying to work with i18n under expresso 4.02. In my controller, I set
> the Locale as Locale.CHINESE using request.setLocale(Locale.FRENCH);
> but the locale is not set, because later I print out
> request.getLocale(); it is still en.
>
> I used to use Struts. In Struts, I can set locale in Action class using
> setLocale(request, aLocale). It works well. But how to make it work in
> expresso? Help please!
>
> Jacq
>
>
>
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
> _______________________________________________
> Opensource mailing list
> Opensource at jcorporate.com
> http://mail.jcorporate.com/mailman/listinfo/opensource
> Archives: http://mail.jcorporate.com/pipermail/opensource/
>
More information about the Opensource
mailing list