Call

    <%res.flush()%>

inside of the loop.  This flushes all accumulated output out to the browser.
Without it, nothing is sent back to the browser until the servlet is
completely done.

- Geoff

> -----Original Message-----
> From: Rolf Hanson [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 19, 2002 9:18 PM
> To: [EMAIL PROTECTED]
> Subject: [Webware-discuss] streaming .psp output?
> 
> 
> Is it possible to stream the output of a psp page?
> 
> I have a page which sends email to a variable number of users.
> like:
> 
> <% for user_id in user_ids : {%>
> <%=wmail.sendMessage(user_id,message)%>
> <%}%>
> 
> sendMessage() returns a string that describes if the mail was 
> a success 
> or error.
> 
> Right now, the page does not render until the for loop has completed. 
> I'd like to stream the results of the mailing to the user who 
> is using 
> the system.
> 
> Thanks,
> 
> Rolf
> 
> 
> _______________________________________________________________
> Hundreds of nodes, one monster rendering program.
> Now that's a super model! Visit http://clustering.foundries.sf.net/
> 
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
> 

_______________________________________________________________
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to