• Post Reply Bookmark Topic Watch Topic
  • New Topic

Refreshing a jsp page  RSS feed

 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I've come across another problem with my connect 4 game.
With my chat program, I was using 2 servlets, and In the 'Display'
servlet, I was refreshing it every 5 seconds using...

But now I need to do the same thing inside a jsp page,
but I don't have a clue how to do it.
Any ideas would be great, thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%
response.setIntHeader("Refresh",5);
%>
 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeh your right, dumb question really.
But I've found some HTML code that does the same thing:


Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right. Meta tag does the job too.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!