For servlet development, EAServer supports internationalization compliant methods that are described in the Java Servlet 2.3 specification. These methods, getLocale and getLocales on the ServletRequest interface and setLocale on the ServletResponse interface:
getLocale and getLocales - parse the accept-language header, extract the language and quality value information, and return the specified locale names. If the request specifies no locale, return the server’s default locale.
setLocale - sets the language attributes in the Content-Language header. The default is the server’s default locale.
Copyright © 2005. Sybase Inc. All rights reserved. |