General discussion

Locked

Servlet Problem

By tripathi_sandeep ·
I'm working on Servlet.I want to develop a screen in sucha manner that it refreshes automatically after a specified period of time(suppose 60 sec.) with new data from the database,in case if user does'nt click on "next" button in time.How can i achieve this task in servlets?

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Servlet Problem

by Jay Eckles In reply to Servlet Problem

This actually isn't a servlet problem, it's an HTML problem. You should include a META tag in the document telling the browser to refresh the page after 60 seconds, then program your servlet to deal with the repeated requests.

<META HTTP-EQUIV=Refresh CONTENT="60; URL=http://www.yourdomain.com/path/yourservlet?parameters">

Most (but not all) browsers support this META tag.

Good luck.

Jay Eckles
www.jayeckles.com

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums