Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Auto-updating JSP page

 
Jason Brawner
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering how to create a JSP that only refreshes portions of the page, without frames. Here is an example...
At nfl.com they have an area called Game Center. It allows you to watch a games stats (almost) live but the whole page doesn't refresh, just the portions that change like player stats and a graphical scoreboard. How do they do that?
There are no frames or applets. I've looked at the source and its a bunch of JavaScript.
Any ideas?
 
sanj singh
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jason
This is what I will do.......
Suppose A.jsp is the main page and in there you want to call B.jsp.
A.jsp
------
<jsp:include page="B.jsp" />
B.jsp
-----
<%
response.setHeader("Refresh","5");
%>
This will force B.jsp to refresh every 5 seconds
Hope this helps
Regards
sanj
 
Jason Brawner
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They do use a refresh header that updates the entire page every couple minutes BUT updates occur to the page on a play-by-play basis as well without updating the whole page.
[ February 08, 2002: Message edited by: Jason Brawner ]
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was intrigued so I checked out the page. I found:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic