This isn't going to work.
You show the same time 5 times.

For all who are having problems with the mix of JSP and Javascript,
I made a page where you can test and experiment with javascript. It's still
under construction and there isn't any documentation.
The javascript workbench is at
http://www.darling.be/javascript/jsmain.html

Let me know if you find this interesting. I'm thinking about a similar thing
for java instead of javascript.

Geert 'darling' Van Damme


> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Henki Lubis
> Sent: woensdag 19 juli 2000 10:58
> To: [EMAIL PROTECTED]
> Subject: Re: How to get date and time ?
>
>
> maybe this can help u litle ..
>
> <html>
> <h1>Display Time </h1>
> <body>
> <input type=button name="demobutton" value ="Show all available button
> properties" onClick="showprop();">
> <pre>
> New York Time  <input type=text name="est" size=40>
> Central Time   <input type=text name="cst" size=40>
> LA Time        <input type=text name="pst" size=40>
> India Time     <input type=text name="ist" size=40>
> UK Time        <input type=text name="gmt" size=40>
> </pre>
>
> <script>
> function setworldtime()
> {
> now = new Date();
> ist.value = now.toLocaleString();
> est.value = now.toLocaleString();
> cst.value = now.toLocaleString();
> pst.value = now.toLocaleString();
> gmt.value = now.toLocaleString();
>
> }
> setInterval("setworldtime()",2000);
> </script>
> </body>
> </html>
>
>
> a beginner
>
> -----Original Message-----
> From: Kumail Rizvi [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 19, 2000 4:00 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to get date and time ?
>
>
> use simply javascript.
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Yasir Feroze Minhas
> Sent: Friday, July 21, 2000 12:08 PM
> To: [EMAIL PROTECTED]
> Subject: How to get date and time ?
>
>
> Hi all,
>
> I am writing a JSP application in which I need to get client's date and
> time. My client can be in the USA, in Japan, In Africa, anywhere in the
> world. So please tell me what is the best suited method to get
> the date and
> time according to my client's time zone.
>
> Thanks in advance
> Yasir
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to