File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Time on JSP Page

Chinni Bujji
Ranch Hand

Joined: Jan 31, 2007
Posts: 60
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

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
Marshal

Joined: Jan 10, 2002
Posts: 61218
    
  66

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: http://aspose.com/file-tools
 
subject: Time on JSP Page