Re: Getting the date/time from the client

2006-07-11 Thread Shinya Koizumi
); System.out.println(d); } SK - Original Message - From: Vinu Varghese [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 11, 2006 12:51 AM Subject: Getting the date/time from the client Hi All, I am doing a project in jsp/servlet and tomcat, which requires to take

Re: Getting the date/time from the client

2006-07-11 Thread Mr Alireza Fattahi
Hi, May be you can use: request.getDateHeader() Have a look at, there is a related thread there: http://www.theserverside.com/discussions/thread.tss?thread_id=38542 Vinu Varghese [EMAIL PROTECTED] wrote: Hi All, I am doing a project in jsp/servlet and tomcat, which requires to take the

Re: Getting the date/time from the client

2006-07-11 Thread Shinya Koizumi
] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 11, 2006 1:24 AM Subject: Re: Getting the date/time from the client Thanks SK, I tried the second solution , but request.getDateHeader(Date) returns -1 . Also I didn't understand the first solution ( embed a javascript), Can u pls

Re: Getting the date/time from the client

2006-07-11 Thread Vinu Varghese
[EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 11, 2006 1:24 AM Subject: Re: Getting the date/time from the client Thanks SK, I tried the second solution , but request.getDateHeader(Date) returns -1 . Also I didn't understand the first solution ( embed

Re: Getting the date/time from the client

2006-07-11 Thread Shinya Koizumi
- From: Vinu Varghese [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 11, 2006 2:23 AM Subject: Re: Getting the date/time from the client SK, That javascript prints the current client time. But I want the client time with the request. The scenario is : I have

Re: Getting the date/time from the client

2006-07-11 Thread Jon Wingfield
(currentTime.toLocaleString());); out.println(/SCRIPT); out.println(/HEAD); % /body /html SK - Original Message - From: Vinu Varghese [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 11, 2006 1:24 AM Subject: Re: Getting the date/time from the client

Re: Getting the date/time from the client

2006-07-11 Thread Pid
Message - From: Vinu Varghese [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 11, 2006 1:24 AM Subject: Re: Getting the date/time from the client Thanks SK, I tried the second solution , but request.getDateHeader(Date) returns -1 . Also I

Re: Getting the date/time from the client

2006-07-11 Thread Vinu Varghese
); % /body /html SK - Original Message - From: Vinu Varghese [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 11, 2006 1:24 AM Subject: Re: Getting the date/time from the client Thanks SK, I tried the second solution

RE: Getting the date/time from the client

2006-07-11 Thread Tim Lucia
To: Tomcat Users List Subject: Re: Getting the date/time from the client Thanks Pid, I think that is a good idea Let me try - Regards Vinu Pid wrote: you can get a Locale from the request, and adjust the time accordingly. Vinu Varghese wrote: but that still sets the server date

Re: Getting the date/time from the client

2006-07-11 Thread Pid
to Pacific Standard Time? Then what? (assume I am on the east coast of the USA...) Tim -Original Message- From: Vinu Varghese [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 11, 2006 8:05 AM To: Tomcat Users List Subject: Re: Getting the date/time from the client Thanks Pid, I

RE: Getting the date/time from the client

2006-07-11 Thread Tim Lucia
PROTECTED] minds.org To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 11, 2006 1:24 AM Subject: Re: Getting the date/time from the client Thanks SK, I tried the second solution , but request.getDateHeader(Date) returns -1 . Also I didn't understand