Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
problem in jsp response

problem in jsp response

2004-01-13       - By Rogerio Baldini das Neves

 Back
Reply:     1     2     3     4     5     6     7  

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.
This is, tomcat sends the html soucecode just when process ends.
I need tomcat sends soucecode to response on demand (on each iteration)

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><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><STRONG>&lt;%<BR>for(int i=0; i&lt;10;
i++)<BR>{<BR>&nbsp;out.println("i:"+i+"&lt;br&gt;");<BR>&nbsp;Thread.sleep(1000
);<BR>}&nbsp;<BR>%&gt;</STRONG></FONT></DIV>
<DIV><STRONG><FONT face=Arial size=2></FONT></STRONG>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>is just showed in browser when tomcat finishes
processing all iterates.</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)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><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>&nbsp;&nbsp;<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>

©2008 junlu.com - Jax Systems, LLC, U.S.A.