• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Time on JSP Page

 
Chinni Bujji
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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

thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Chinni Bujji
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you tell me how to do that please
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64992
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JavaScript Date object and the window.setInterval() method should get you going...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic