aspose file tools*
The moose likes JSP and the fly likes Refresh jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Refresh jsp page" Watch "Refresh jsp page" New topic
Author

Refresh jsp page

Mehak Darti
Greenhorn

Joined: Dec 13, 2003
Posts: 18
hi...
i have this jsp page which shows rows of data based on a given condition. Now every time a new record comes, inorder to see the new record the user has to refresh the page manually. Is there any way how i can refresh the page (programmatically)..say like every 15 seconds so that the user always see's the lastest update and then need not refresh the page again and again. ??
for example .. i'm showing on problem.jsp the lastest problems that have been reported .. and problems are reported by the user very frequently ..say every 15-20 seconds a new problem is reported by the user. Now on this problem.jsp page inorder to see the lastest problem which has been reported by the user we will have to refresh the page manually. What i want to do is that the page should automatically be refreshed after every 15 seconds so that the latest problems are also displayed..!
Any suggestions...
Mehak Darti
Greenhorn

Joined: Dec 13, 2003
Posts: 18
yeh my problem is solved .. found the answer in the javascript section of this web site... man this web site is great..!!!
Thanxssss to all..!
Mike Wang
Ranch Hand

Joined: May 09, 2003
Posts: 76
in your jsp file
<%response.setIntHeader("Refresh",15); %>
Originally posted by Mehak Darti:
hi...
i have this jsp page which shows rows of data based on a given condition. Now every time a new record comes, inorder to see the new record the user has to refresh the page manually. Is there any way how i can refresh the page (programmatically)..say like every 15 seconds so that the user always see's the lastest update and then need not refresh the page again and again. ??
for example .. i'm showing on problem.jsp the lastest problems that have been reported .. and problems are reported by the user very frequently ..say every 15-20 seconds a new problem is reported by the user. Now on this problem.jsp page inorder to see the lastest problem which has been reported by the user we will have to refresh the page manually. What i want to do is that the page should automatically be refreshed after every 15 seconds so that the latest problems are also displayed..!
Any suggestions...


SCJP1.4<br />SCWCD 1.4 (Beta)<br />SCMAD 1.0 (Beta)<br />SCDJWS (Beta)<br />SCBCD 1.3 <br />SCJD <br />SCEA (Prepairing)<br />"I am mike, not milk"
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Refresh jsp page