File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes automatic refresh of a  jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "automatic refresh of a  jsp page" Watch "automatic refresh of a  jsp page" New topic

automatic refresh of a jsp page

Makhana Jiggu

Joined: Nov 09, 2005
Posts: 11
I have to query the database for every 5 minutes to check for any new records. If records are found, then it has to automatically refresh the home page(this is jsp page) displaying a page to the user that new record has been created. How can i achieve this? Any suggesstions please

Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3753

Use HTML Meta refresh tags, this isn't really a JSP feature either.

[OCA 8 Book] [Blog]
Raymond Villeno
Ranch Hand

Joined: Jun 21, 2005
Posts: 63
Yup i agree use Meta tags/pragma controls if you want or you could also use javascript for page refresh, but hey the simpler the better


"Work Smart Not Hard"
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

"Buff" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.

You can change your user name here.

Thanks! and welcome to the JavaRanch!

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: automatic refresh of a jsp page
jQuery in Action, 3rd edition