"Dynamic" JSP?

Hi All,

I have an application that I converted from J2SE into JSP form. It employs a console-like JTextArea which I used to simply append to. Now I replaced it with an iframe that supposedly does the same thing. It supposed to do some processing, and prints out stage by stage what it is doing. However, it appears that JSP cannot do that. Instead, it completes every processing job before printing out all the stages at one go. and in the interim period the page looks like its loading or hanging. Is there any way to make JSP print out line by line?

[564 byte] By [infusea] at [2007-10-3 2:26:42]
# 1
can an http response be send line by line?
jgalacambraa at 2007-7-14 19:25:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
technically no i guess? thats why i'm seeing who can provide me with a more "dynamic" solution?
infusea at 2007-7-14 19:25:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
ok i guess its difficult
jgalacambraa at 2007-7-14 19:25:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

If I understand your question correctly, then you are going to need to use Javascript to get this type of dynamic action. It's the only way I know of to get changes reflected on the screen that aren't the result of a request and fresh response.

You can even send data to the server, and get responses making changes accordingly, this way.

This limitation isn't a "JSP" thing, it's an HTTP thing.

linxpdaa at 2007-7-14 19:25:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Every time you flush the output, stuff gets sent to the browser.so calling <% out.flush() %> you could continually send the stuff to date to the screen.Check out [url= http://www.pushlets.com]www.pushlets.com[/url]
evnafetsa at 2007-7-14 19:25:46 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...