• Post Reply Bookmark Topic Watch Topic
  • New Topic

Autorefreshing a servlet page  RSS feed

 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to auto refresh a servlet page for every 10 sec.I have checked it with a simple helloworld servlet program.But i dont find the page is getting refreshed automatically.I have used

Is this the correct code to refresh.anyone help me please.

Thanks in advance
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instead of Refresh header, you should use
<meta http-equiv="refresh" content="10"> inside the html head section.

This is recommended over Refresh header, as Refresh header isn't supported by Http/1.1 spec.
 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks .Its working fine.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!