• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Auto-updating JSP page

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was intrigued so I checked out the page. I found:
 
I've never won anything before. Not even a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic