Robb Shecter wrote:
> Hi,
>
> I'm attaching a class I wrote because it may help others, and also to
> get comments about the wisdom of doing some like this.
>
> I want to be able to tailor the HTML output of my servlets to the time
> zone that the user is from. I also want to be able to make the format
> in which dates are printed as normal for the user.
>
> This class, ClientInfo, takes a ServerRequest paramter in its
> constructor. It parses out the Top Level Domain, and uses that to
> create appropiate Locale and SimpleDateFormat objects.
>
This is a noble idea, but I don't know how accurate it will really be. For
example, the European subsidiary of the company I work for has a ".com"
extension on their domain name, because that is typical of a commercial
enterprise. Choosing Locale.US simply because they browsed from such a domain
name isn't going to please someone who works there.
Craig McClanahan
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html