Apologies if this is a no-brainer...
From within a JSP or struts action, I want get the date of the client machine that sent the Http
request.
How do I do that?
TIA - Adam
> Apologies if this is a no-brainer...
>
> From within a JSP or struts action, I want get the date of the client
> machine that sent the Http request.
>
> How do I do that?
Use client-side JavaScript to put the date into
a (hidden) form field, and POST it to the JPS/Action?

Signature
Dag.
Lew - 26 Jan 2007 16:44 GMT
Adam Lipscombe wrote:
>> From within a JSP or struts action, I want get the date of the client
>> machine that sent the Http request.
>>
>> How do I do that?
> Use client-side JavaScript to put the date into
> a (hidden) form field, and POST it to the JPS/Action?
Of course, the reported data
(whether obtained from JS or from HTTP headers) could vary widely from what
the server knows as the time, due to lack of server control over client clocks
or time zones.
- Lew