Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2007

Tip: Looking for answers? Try searching our database.

Getting Client-side Locale/TimeZone/Date?

Thread view: 
Adam Lipscombe - 26 Jan 2007 09:59 GMT
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
Dag Sunde - 26 Jan 2007 10:05 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.