aspose file tools*
The moose likes JSP and the fly likes refresh while reading a file... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "refresh while reading a file..." Watch "refresh while reading a file..." New topic
Author

refresh while reading a file...

Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 170
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

Joined: Oct 04, 2001
Posts: 17
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: refresh while reading a file...