|
|
|
|||
|
The Scope of a LocaleThe Java platform does not require you to use the sameLocale throughout your program. If you wish, you can
assign a different Locale to every locale-sensitive object
in your program. This flexibility allows you to develop multilingual
applications, which can display information in multiple languages.
However, most applications are not multi-lingual and their
locale-sensitive objects rely on the default
Distributed computing raises some interesting issues. For example,
suppose you are designing an application server that will receive
requests from clients in various countries. If the
Which design approach should you take? If possible, the data passed
between the server and the clients should be locale-independent. This
simplifies the design of the server by making the clients responsible
for displaying the data in a locale-sensitive manner. However, this
approach won't work if the server must store the data in a
locale-specific form. For example, the server might store Spanish,
English, and French versions of the same data in different database
columns. In this case, the server might want to query the client for
its | |||
|