Web Development

General discussion


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.

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

Related Discussions

Related Forums