Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 Badass: Making Users Awesome this week in the Game Development 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: 62269

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Time on JSP Page