Hi,
I am running
Java Web Server 2.0
Please go through my code. (its not long....)
The problem is that the HTML output does not take in to account GMT, once EST is defined for the param name.
This program takes the param value and sets the time zone so that, current time in that time zone is returned.
The output looks like this
The current time here is: XXXXXX //takes default time
And the time in New York is: EST XXXXX //time for EST
And the time in London is EST XXXXXXX
The third line should actually read EST instead of GMT.
But in the shtml file its GMT.
This is my .shtml file that I wrote
The current time here is:
And the time in New York is:
And the current time in London is:
And the CurrentTime class looks like :-
[This message has been edited by Frank Carver (edited October 04, 1999).]