• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Auto-updating JSP page  RSS feed

 
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?
 
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 ]
 
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
Boost this thread!