File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Murach's Java Servlets and JSP this week in the Servlets 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.
It is sorta covered in the JavaRanch Style Guide.
subject: Setting Time. Urgent Please.
Similar Threads
Tech Word Game
WA #1.....word association
display area problem
Scrabble... it only takes a minute...
SSL Connection Pool between HTTP server and Application server