Re: Streaming HTML generation

On Tue, 24 Dec 1996, Mark Friedman wrote:
>Is there a way to use the HTMLGenerator class to stream HTML back to a
>browser. i.e. return the HTML as it's generated instead of waiting until it's
>all generated?
>
>If not, is there any way to do it?
>

Actually, you could subclass HtmlGenerator and override the close() and/or  
getInputStream() methods.  Well, maybe not.  Look into what  
w3c.jigsaw.http.Reply and w3c.www.protocol.http.Reply are doing with  
getInputStream() and setStream(w3c.jigsaw.html.HtmlGenerator g).  Might have  
to have a subclass of w3c.jigsaw.http.Reply to really be effective...

There I went typing away when what I was really trying to get at with this  
response was:

As a side note, I was trying to dig through the HTTP 1.0 & 1.1 and HTML specs  
trying to come up with a nice way of dynamically generating images and HTML  
page 'wrappers' that would allow for just streaming the whole document to the  
browser.  I guess I'm just a little off on the use of <IMG SRC="<>"> markup.   
But wouldn't it just be nice to provide some wrapper around an image instead  
of just sending the image back?

jas

Received on Tuesday, 24 December 1996 13:38:45 UTC