previous
|
start
|
next
Handling Request Parameters
Modify the JSP page to take as input the user's city and to return the time in that time zone
The Java library contains a
TimeZone
class that knows about time zones
A time zone is identified by a string such as
"America/Los_Angeles"
"Asia/Tokyo"
The static method
getAvailableIDs
returns a string array containing all IDs
The static
getTimeZone
method returns a
TimeZone
class for a given ID string
String zoneID = "America/Los_Angeles"; TimeZone zone = TimeZone.getTimeZone(zoneID);
previous
|
start
|
next