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

Setting Time. Urgent Please.

padmaja mandava
Greenhorn

Joined: Mar 01, 2001
Posts: 9
Hai,
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
Thanks
padmaja
khudiram Barik
Greenhorn

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>.
<SCRIPT LANGUAGE="JavaScript">
setInterval('myMethod()', 5000)
</SCRIPT>

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
Greenhorn

Joined: Mar 01, 2001
Posts: 9
khudiram,
Thank you. I will try that.
Padmaja
 
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