Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

refresh while reading a file...

 
Nelson Nadal
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I searched previous "refresh" subject but found none like I want to ask.
I want to refresh my the JSP page after every record he got from the file.
Ex:
<% while (((record = br.readLine()) != null)) %>
<%=record%>
...then refresh
So this maintains a one line page, not like the page that increments the string line making the page cluttered and long.
Please help. Thanks guys and gals.
 
deepak yadav
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP is a not a push kind of protocol (server can't send anything anytime at will), so u can't do that. Only thing possible is to have refresh meta tag with very low timeout (say 3 seconds)
-deepak
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic