RE: Getting the date/time from the client

2006-07-11 Thread Tim Lucia
Tomcat Users List > Subject: Re: Getting the date/time from the client > > A good devil's advocate question, or was it rhetorical? > > Either way it's got exactly the answer you'd expect, you'll set the date > to whatever Locale the Request returns. Obviously. &g

Re: Getting the date/time from the client

2006-07-11 Thread Pid
, and my > clock set 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 Us

RE: Getting the date/time from the client

2006-07-11 Thread Tim Lucia
5 AM > 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 accordin

Re: Getting the date/time from the client

2006-07-11 Thread Vinu Varghese
e: <% out.println(""); out.println("var currentTime = new Date();"); out.println("document.write(currentTime.toLocaleString());"); out.println(""); out.println(""); %> SK - Original Message - From: "Vinu Varghese&

Re: Getting the date/time from the client

2006-07-11 Thread Pid
;> >>>>> SK >>>>> - Original Message ----- From: "Vinu Varghese" <[EMAIL PROTECTED]> >>>>> To: "Tomcat Users List" >>>>> Sent: Tuesday, July 11, 2006 1:24 AM >>>>> Subject: Re: Getting the dat

Re: Getting the date/time from the client

2006-07-11 Thread Vinu Varghese
uest request, HttpServletResponse response) throws ServletException, IOException { long l = request.getDateHeader("Date"); Date d = new Date(l); System.out.println(d); } SK - Original Message - From: "Vinu Varghese" <[EMAIL PROTECTED]> To: &

Re: Getting the date/time from the client

2006-07-11 Thread Pid
ote: >>> Vinu >>> Yeah, you are right about it, I can't get getDateHeader working. >>> >>> For the solution one, I have setup like this for jsp and worked. >>> >>> <%@ page session="false" %> >>> >>> >

Re: Getting the date/time from the client

2006-07-11 Thread Jon Wingfield
t; <%= application.getServerInfo() %> Current Time: <% out.println(""); out.println("var currentTime = new Date();"); out.println("document.write(currentTime.toLocaleString());"); out.println(""); out.println(""); %> SK - Origin

Re: Getting the date/time from the client

2006-07-11 Thread Shinya Koizumi
al Message - From: "Vinu Varghese" <[EMAIL PROTECTED]> To: "Tomcat Users List" 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. T

Re: Getting the date/time from the client

2006-07-11 Thread Vinu Varghese
t;); out.println("document.write(currentTime.toLocaleString());"); out.println(""); out.println(""); %> SK - Original Message - From: "Vinu Varghese" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, July 11, 200

Re: Getting the date/time from the client

2006-07-11 Thread Shinya Koizumi
out.println("var currentTime = new Date();"); out.println("document.write(currentTime.toLocaleString());"); out.println(""); out.println(""); %> SK - Original Message - From: "Vinu Varghese" <[EMAIL PROTECTED]> To: "Tomcat Users Lis

Re: Getting the date/time from the client

2006-07-11 Thread Vinu Varghese
ot;Vinu Varghese" <[EMAIL PROTECTED]> To: "Tomcat Users List" 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 the client da

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 cl

Re: Getting the date/time from the client

2006-07-11 Thread Shinya Koizumi
ate d = new Date(l); System.out.println(d); } SK - Original Message - From: "Vinu Varghese" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, July 11, 2006 12:51 AM Subject: Getting the date/time from the client Hi All, I am doing a proj

Getting the date/time from the client

2006-07-11 Thread Vinu Varghese
Hi All, I am doing a project in jsp/servlet and tomcat, which requires to take the client date/time (ie the time of the machine the browser is running). Is there any way to accomplish this ? Thanks & regards Vinu -- Vinu Varghese [EMAIL PROTECTED]