File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Time on JSP Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Time on JSP Page" Watch "Time on JSP Page" New topic

Time on JSP Page

Chinni Bujji
Ranch Hand

Joined: Jan 31, 2007
Posts: 60

I need to display the time on JSP Page
AS the time changes should change accordingly on the jsp page without refreshing the page

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Then you'll need to do this with Javascript.

Once the page is rendered, it is disconnected from the server (the JSP code is finished).

Moving to our HTML/Javascript forum.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Chinni Bujji
Ranch Hand

Joined: Jan 31, 2007
Posts: 60
Can you tell me how to do that please
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63532

The JavaScript Date object and the window.setInterval() method should get you going...

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Time on JSP Page
It's not a secret anymore!