rocket mass heater kickstarter
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

Win a copy of Elasticsearch in Action this week in the Big Data forum!
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: 62139

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
rocket mass heater kickstarter
subject: Time on JSP Page