Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refresh jsp page

 
Mehak Darti
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic