You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by "Adam, Jason C" <ja...@lmco.com> on 2002/03/28 01:30:51 UTC

DateTime taglib to show client date

I was wondering if there is a way to use the DateTime taglib to show the
clients date?  I have the tag working fine, but of course it shows the date
of the server.  I read the documentation on locales, but I can't seem to
figure how to possibly use to automatically show the clients date.

Thanks!

Jason C. Adam
Sun Certified Programmer for the Java(tm) 2 Platform
Computer & Networking Services, EIS
(303) 971-1740
(720) 521-8769 pgr


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: DateTime taglib to show client date

Posted by Pete Gordon <PG...@fourthchannel.com>.
If your doing this for a web application, I suggest client-side javascript.
I don't believe the Date/Time of the client comes through the HTTP Request,
but you may want to look into the standard HTTP Request Headers that are
available.  I am not familar with the  Date/Time tag so I can't tell you if
it has something in it that does this or not.  : )

Pete Gordon



----- Original Message -----
From: "Adam, Jason C" <ja...@lmco.com>
To: <ta...@jakarta.apache.org>
Sent: Wednesday, March 27, 2002 7:30 PM
Subject: DateTime taglib to show client date


> I was wondering if there is a way to use the DateTime taglib to show the
> clients date?  I have the tag working fine, but of course it shows the
date
> of the server.  I read the documentation on locales, but I can't seem to
> figure how to possibly use to automatically show the clients date.
>
> Thanks!
>
> Jason C. Adam
> Sun Certified Programmer for the Java(tm) 2 Platform
> Computer & Networking Services, EIS
> (303) 971-1740
> (720) 521-8769 pgr
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: DateTime taglib to show client date

Posted by Bin Zhou <bi...@hotmail.com>.
Adam,

Taglibs are running on the server.  You have to use some client side scripts
like javascript etc. to get the client machine time.

Thanks,

Bin


----- Original Message -----
From: "Adam, Jason C" <ja...@lmco.com>
To: <ta...@jakarta.apache.org>
Sent: Wednesday, March 27, 2002 7:30 PM
Subject: DateTime taglib to show client date


> I was wondering if there is a way to use the DateTime taglib to show the
> clients date?  I have the tag working fine, but of course it shows the
date
> of the server.  I read the documentation on locales, but I can't seem to
> figure how to possibly use to automatically show the clients date.
>
> Thanks!
>
> Jason C. Adam
> Sun Certified Programmer for the Java(tm) 2 Platform
> Computer & Networking Services, EIS
> (303) 971-1740
> (720) 521-8769 pgr
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: DateTime taglib to show client date

Posted by Henri Yandell <ba...@generationjava.com>.
Any client side application.

vbscript, javascript, java applet, curl, flash. if u want it as text
though, you're pretty much looking at some javascript.

On Wed, 27 Mar 2002, Subbarayan Ramanathan wrote:

> The only solution is JavaScript I believe.
>
> "Adam, Jason C" wrote:
> >
> > I was wondering if there is a way to use the DateTime taglib to show the
> > clients date?  I have the tag working fine, but of course it shows the date
> > of the server.  I read the documentation on locales, but I can't seem to
> > figure how to possibly use to automatically show the clients date.
> >
> > Thanks!
> >
> > Jason C. Adam
> > Sun Certified Programmer for the Java(tm) 2 Platform
> > Computer & Networking Services, EIS
> > (303) 971-1740
> > (720) 521-8769 pgr
> >
> > --
> > To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> > For additional commands, e-mail: <ma...@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: DateTime taglib to show client date

Posted by Subbarayan Ramanathan <rs...@fedex.com>.
The only solution is JavaScript I believe.

"Adam, Jason C" wrote:
> 
> I was wondering if there is a way to use the DateTime taglib to show the
> clients date?  I have the tag working fine, but of course it shows the date
> of the server.  I read the documentation on locales, but I can't seem to
> figure how to possibly use to automatically show the clients date.
> 
> Thanks!
> 
> Jason C. Adam
> Sun Certified Programmer for the Java(tm) 2 Platform
> Computer & Networking Services, EIS
> (303) 971-1740
> (720) 521-8769 pgr
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>