  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | problem in jsp response | problem in jsp response 2004-01-13 - By Rogerio Baldini das Neves
Back Hi,
I have a problem that's getting me crazy.
A code in jsp file like this:
<% for(int i=0; i<10; i++) { out.println("i:"+i+"<br>"); Thread.sleep(1000); } %>
is just showed in browser when tomcat finishes processing all iterates (it takes 10 seconds). This is, tomcat sends the html soucecode just when process ends. I need tomcat sends soucecode to response on demand (on each iteration - 1 per second)
Is it possible ? Somebody help me ...
Thanks,
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ Rog�rio Baldini das Neves Diretor de Tecnologia 1 www.infoquest.com.br + baldini@(protected) ( 55 (31) 3261-7030 / Ramal 27
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2800.1276" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hi,</FONT></DIV> <DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>I have a problem that's getting me crazy.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>A code in jsp file like this:</FONT></DIV> <DIV><FONT face=Arial size=2><STRONG></STRONG></FONT> </DIV> <DIV><FONT face=Arial size=2><STRONG><%<BR>for(int i=0; i<10; i++)<BR>{<BR> out.println("i:"+i+"<br>");<BR> Thread.sleep(1000 );<BR>} <BR>%></STRONG></FONT></DIV> <DIV><STRONG><FONT face=Arial size=2></FONT></STRONG> </DIV> <DIV><FONT face=Arial size=2>is just showed in browser when tomcat finishes processing all iterates (it takes 10 seconds).</FONT></DIV> <DIV><FONT face=Arial size=2>This is, tomcat sends the html soucecode just when process ends. </FONT></DIV> <DIV><FONT face=Arial size=2>I need tomcat sends soucecode to response on demand (on each iteration - 1 per second)</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Is it possible ?</FONT></DIV> <DIV><FONT face=Arial size=2>Somebody help me ...</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Thanks,</FONT></DIV><BR> <DIV><FONT face='"Verdana", Geneva, MS sans-serif' color=#000000 size=-2><B>__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____</B> <BR><FONT face='"Verdana", Geneva, MS sans-serif' color=#000000 size=-1><B>Rog�rio Baldini das Neves</B><BR></FONT><FONT face='"Verdana", Geneva, MS sans-serif' color=#000000 size=0><B>Diretor de Tecnologia</B> </FONT></DIV> <DIV><FONT size=1> <TABLE border=0> <TBODY> <TR> <TD><FONT face=Wingdings color=#000000 size=2>1 </FONT></TD> <TD><A style="COLOR: #000000" href="http://www.infoquest.com.br"><FONT face="MS Sans Serif" size=1>www.infoquest.com.br</FONT></A></TD> <TD rowSpan=3> <IMG alt=" " src="http://www.infoquest.com.br/img/logo_01.gif" border=0></TD></TR> <TR> <TD><STRONG><FONT face=Wingdings color=#000000>+</FONT></STRONG></TD> <TD> <DIV><FONT size=1><A style="COLOR: #000000" href="mailto:baldini@(protected)">baldini@(protected)</A></FONT ></DIV></TD></TR> <TR> <TD><STRONG><FONT face=Wingdings color=#000000>(</FONT></STRONG></TD> <TD><FONT face="MS Sans Serif" color=#000000 size=1>55 (31) 3261-7030 / Ramal 27</FONT></TD></TR></TBODY></TABLE></FONT></DIV></FONT></DIV></BODY></HTML>
|
|
 |