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?
Jason E. Brawner<br />Sun Certified Java Programmer<br />Sun Certified Web Component Developer
sanj singh
Ranch Hand
Joined: Jun 30, 2001
Posts: 129
posted
0
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
Joined: Dec 19, 2001
Posts: 66
posted
0
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
Joined: Oct 09, 2001
Posts: 564
posted
0
I was intrigued so I checked out the page. I found:
I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.