public java.util.Locale getLocale()Returns the preferred Locale that the client will accept content in, based on the Accept-Language header. If the client request doesn't provide an Accept-Language header, this method returns the default locale for the server.
Returns:
the preferred Locale for the client例如你可以在IE浏览器中Internet选项-->常规-->语言中设定自己的默认语言为EN,这样服务器端就可以知道拿哪个Local的属性文件了。