• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp page refresh automatically after 10 secs.

 
Sonal Sharma
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to display the data fetched in from database after every 10 secs in a jsp page.what should be done from database connection point of view and what should be done from jsp point of view.Provide me some strategy to deal with this problem.
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does this relate to the SCWCD exam? Have you tried the Http meta refresh concept, i.e.

<meta http-equiv="refresh" content="5; url=/someurl/">
[ June 14, 2007: Message edited by: Marcus Green ]
 
Mark Garland
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This one's been answered before!

See Here

MG
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we even have a a HTTP header by the name REFRESH. Make your servlet say

response.setHeader("Refresh", int seconds);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic