It's not a secret anymore!
The moose likes Servlets and the fly likes Setting Time. Urgent Please. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Setting Time. Urgent Please." Watch "Setting Time. Urgent Please." New topic

Setting Time. Urgent Please.

padmaja mandava

Joined: Mar 01, 2001
Posts: 9
I need to a HTML page from JSP code for every 5 seconds.
How to set the timer. Can anybody help me in this matter
khudiram Barik

Joined: Feb 12, 2001
Posts: 17
Hi Padmaja !
You can try the folowing :--
put the following code in your jsp page within the <form> </form>.
setInterval('myMethod()', 5000)

This will invoke your javaScript method in every 5 second and you can do the form.submit method to go to your html page which should be specified in your action="your.html" in the form tag.
Hope this helps.

padmaja mandava

Joined: Mar 01, 2001
Posts: 9
Thank you. I will try that.
I agree. Here's the link:
subject: Setting Time. Urgent Please.
It's not a secret anymore!