  | 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
|
|
|
  | | | Well to help all your bored servlet developers... | Well to help all your bored servlet developers... 2003-09-16 - By Ross Rankin
Back :-)
I need some help. I have a servlet that generates about 150 items and creates an HTML table. It takes about 45 - 60 seconds to run.
First, I would like to create pages with 20 - 30 items per page. I through of a way to do this with JavaScript and DIV tags but we know why that isn't the best solution for multi-browser support and doesn't help with the issue below.
Second, I would like to provide the illusion of speed where as soon as the servlet is done with the first 20 results, throw up the HTML and let the process keep going with the other 130 while the users looks at the first 20.
I'm using Tomcat as the server and don't have an issue with JSP if that helps. My attempts have failed. It seems that it just buffers everything I try to send why the servlet is running until it finishes.
Thanks!
Ross
Ross Rankin
ross@(protected)
404-667-1072
CareerFish
http://www.careerfish.com
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
<html>
<head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style> <!-- /* Font Definitions */ @(protected) {font-family:Wingdings; panose-1 (See http://ose-1.ora-code.com):5 0 0 0 0 0 0 0 0 0;} @(protected) {font-family:Verdana; panose-1 (See http://ose-1.ora-code.com):2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {font-family:Arial; color:windowtext;} @(protected) Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Wingdings><span style='font-size:10.0pt; font-family:Wingdings'>J</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>I need some help. I </span></font><font size=2 color=black face=Verdana><span style='font-size:10.0pt;font-family:Verdana; color:black'>have a servlet that generates about 150 items and creates an HTML table. It takes about 45 - 60 seconds to run. <br> <br> First, I would like to create pages with 20 - 30 items per page. I through of a way to do this with JavaScript and DIV tags but we know why that isn't the best solution for multi-browser support and doesn't help with the issue below.<br> <br> Second, I would like to provide the illusion of speed where as soon as the servlet is done with the first 20 results, throw up the HTML and let the process keep going with the other 130 while the users looks at the first 20. <br> <br> I'm using Tomcat as the server and don't have an issue with JSP if that helps. My attempts have failed. It seems that it just buffers everything I try to send why the servlet is running until it finishes. <br> <br> Thanks!<br> <br> Ross</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Ross Rankin</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><a href="mailto:ross@(protected)">ross@(protected)</a> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>404-667-1072</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>CareerFish</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><a href="http://www.careerfish.com">http://www.careerfish .com</a></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'> </span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'> </span></font></p>
</div>
</body>
</html> __ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff SERVLET-INTEREST". <p> Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html <p>
|
|
 |